Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/PolygonTriangulation__Triangulat-
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/PolygonTriangulation.h |
| Include | #include "CompGeom/PolygonTriangulation.h" |
namespace PolygonTriangulation
{
template<typename RealType>
void PolygonTriangulation&58;&58;TriangulateSimplePolygon
&40;
const TArray< TVector< RealType >> & VertexPositions,
TArray< FIndex3i > & OutTriangles,
bool bOrientAsHoleFill
&41;
}
Remarks
Compute triangulation of 3D simple polygon using ear-clipping
Parameters
| Name | Description |
|---|---|
| VertexPositions | ordered vertices of 3D polygon |
| OutTriangles | computed triangulation. Each triangle is a tuple of indices into VertexPositions. |
| bOrientAsHoleFill | if true, output triangles are wound opposite of the input polygon; this is typically desired when the polygon comes from the boundary of a hole |