Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FDelaunay2 > API/Runtime/GeometryCore/CompGeom/FDelaunay2/Triangulate
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include | #include "CompGeom/Delaunay2.h" |
template<typename RealType>
bool Triangulate
(
const TGeneralPolygon2 < RealType > & GeneralPolygon,
TArray < FIndex3i > * TrianglesOut,
TArray < TVector2 < RealType > > * VerticesOut,
bool bFallbackToGeneralizedWinding
)
Remarks
Triangulate a polygon, and optionally pass back the resulting triangles Uses a winding-number-based fill mode, and relies on the general polygon having correct orientations (Uses TGeneralPolygon2's OuterIsClockwise() to automatically choose between positive or negative winding) Note: TrianglesOut may be empty or incomplete if the input is self-intersecting. Note this clears any previously-held triangulation data, and triangulates the passed-in general polygon from scratch