|
SFCGAL
2.3.0
|
#include <Triangle.h>
Inherits SFCGAL::GeometryImpl< Derived, Base >.
Public Member Functions | |
| Triangle () | |
| empty Triangle constructor More... | |
| Triangle (const Kernel::Triangle_2 &triangle) | |
| Constructor with a CGAL triangle. More... | |
| Triangle (const Kernel::Triangle_3 &triangle) | |
| Constructor with a CGAL triangle. More... | |
| Triangle (const Point &point1, const Point &point2, const Point &point3) | |
| constructor with 3 points More... | |
| Triangle (const Triangle &other) | |
| copy constructor More... | |
| auto | operator= (const Triangle &other) -> Triangle & |
| assign operator More... | |
| ~Triangle () override | |
| destructor More... | |
| auto | geometryType () const -> std::string override |
| Get the geometry type as string. More... | |
| auto | geometryTypeId () const -> GeometryType override |
| Get the geometry type identifier. More... | |
| auto | coordinateDimension () const -> int override |
| Get the coordinate dimension. More... | |
| auto | isEmpty () const -> bool override |
| Check if the triangle is empty. More... | |
| auto | is3D () const -> bool override |
| Check if the triangle is 3D. More... | |
| auto | isMeasured () const -> bool override |
| Check if the triangle has measured coordinates. More... | |
| auto | dropZ () -> bool override |
| Drop Z coordinate from all points. More... | |
| auto | dropM () -> bool override |
| Drop M coordinate from all points. More... | |
| auto | swapXY () -> void override |
| Swap X and Y coordinates. More... | |
| void | reverse () |
| reverse Triangle orientation More... | |
| auto | toPolygon () const -> Polygon |
| convert a triangle to a polygon More... | |
| auto | vertex (const int &i) const -> const Point & |
| returns the i-th vertex More... | |
| auto | vertex (const int &i) -> Point & |
| returns the i-th vertex More... | |
| auto | toTriangle_2 () const -> Kernel::Triangle_2 |
| Convert to CGAL::Triangle_2. More... | |
| auto | toTriangle_3 () const -> Kernel::Triangle_3 |
| Convert to CGAL::Triangle_3. More... | |
| template<int D> | |
| auto | toTriangle_d () const -> typename detail::TypeForDimension< D >::Triangle |
| Convert to CGAL::Triangle_2 or CGAL::Triangle_3. More... | |
| void | accept (GeometryVisitor &visitor) override |
| Accept a geometry visitor. More... | |
| void | accept (ConstGeometryVisitor &visitor) const override |
| Accept a const geometry visitor. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serializer. More... | |
[OGC/SFA]Triangle
| SFCGAL::Triangle::Triangle | ( | ) |
empty Triangle constructor
| SFCGAL::Triangle::Triangle | ( | const Kernel::Triangle_2 & | triangle | ) |
Constructor with a CGAL triangle.
| triangle | CGAL 2D triangle to construct from |
| SFCGAL::Triangle::Triangle | ( | const Kernel::Triangle_3 & | triangle | ) |
Constructor with a CGAL triangle.
| triangle | CGAL 3D triangle to construct from |
constructor with 3 points
| point1 | First point of the triangle |
| point2 | Second point of the triangle |
| point3 | Third point of the triangle |
| SFCGAL::Triangle::Triangle | ( | const Triangle & | other | ) |
copy constructor
| other | Triangle to copy from |
|
overridedefault |
destructor
|
override |
Accept a geometry visitor.
| visitor | Visitor to accept |
|
override |
Accept a const geometry visitor.
| visitor | Const visitor to accept |
|
override |
Get the coordinate dimension.
|
override |
Drop M coordinate from all points.
|
override |
Drop Z coordinate from all points.
|
override |
Get the geometry type as string.
|
override |
Get the geometry type identifier.
|
override |
Check if the triangle is 3D.
|
override |
Check if the triangle is empty.
|
override |
Check if the triangle has measured coordinates.
| void SFCGAL::Triangle::reverse | ( | ) |
reverse Triangle orientation
|
inline |
Serializer.
| ar | Archive for serialization |
|
override |
Swap X and Y coordinates.
| auto SFCGAL::Triangle::toPolygon | ( | ) | const -> Polygon |
convert a triangle to a polygon
|
inline |
Convert to CGAL::Triangle_2.
|
inline |
Convert to CGAL::Triangle_3.
|
inline |
Convert to CGAL::Triangle_2 or CGAL::Triangle_3.
| D | Dimension (2 or 3) |
|
inline |
returns the i-th vertex
| i | The vertex index (modulo 3) |
|
inline |
returns the i-th vertex
| i | The vertex index (modulo 3) |
1.8.10