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 TPolygon2 < RealType > & Polygon,
TArray < FIndex3i > * TrianglesOut
)
Remarks
Triangulate a polygon, and optionally pass back the resulting triangles Uses the 'solid' fill mode, and fills the polygon regardless of the edge orientation 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 polygon from scratch