3D polygon triangulator. More...
#include <AdvancedMath.hpp>
Public Member Functions | |
| const std::vector< IndexType > & | Triangulate (const std::vector< Vector3< ComponentType > > &Polygon) |
| Triangulates a simple polygon in 3D. | |
Public Member Functions inherited from Diligent::Polygon2DTriangulator< std::enable_if< std::is_floating_point< ComponentType >::value, IndexType >::type > | |
| const std::vector< IndexType > & | Triangulate (const std::vector< Vector2< ComponentType > > &Polygon) |
| Triangulates a simple polygon using the ear-clipping algorithm. | |
3D polygon triangulator.
The class extends the Polygon2DTriangulator class to handle simple 3D polygons. It first projects the polygon onto a plane and then triangulates the resulting 2D polygon.
|
inline |
Triangulates a simple polygon in 3D.
The function first projects the polygon onto a plane and then triangulates the resulting 2D polygon.
If vertices are not coplanar, the result is undefined.