Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FDelaunay2 > API/Runtime/GeometryCore/CompGeom/FDelaunay2/GetFilledTrianglesGeneralizedWin-
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/Delaunay2.cpp |
bool GetFilledTrianglesGeneralizedWinding
(
TArray < FIndex3i > & TrianglesOut,
TArrayView < const TVector2 < double > > Vertices,
TArrayView < const FIndex2i > Edges,
EFillMode FillMode
) const
Remarks
Get (by reference) the triangles that are inside the given edges, using a generalized winding number method to determine which triangles are inside Not valid for EFillMode::Solid, will fall back to the above GetFilledTriangles method in that case.
This method is for triangulations where the edges did not define a fully-closed shape, either by construction or due to un-resolved edge intersections in the input. Note that it is slower than the standard GetFilledTriangles, and is worse for closed polygons where all edges were successfully constrained. true if the result was well defined and consistent; false otherwise. Solid fill mode always has a well defined result; Winding-number-based fills do not if the edges have open spans. Note the triangulation will still be filled by best-effort even if the function returns false.
Parameters
| Name | Description |
|---|---|
| TrianglesOut | Will be filled with a subset of the triangulation that is 'inside' the given edges, as defined by the FillMode |
| Vertices | The array of vertices that were used in the triangulation (by the previous call to Triangulate) |
| Edges | The array of edges that were already constrained in the triangulation (by a previous call to Triangulate or ConstrainEdges) |
| FillMode | Strategy to use to define which triangles to include in the output |