Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDelaunay2
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetFilledTrianglesGeneralizedWinding
(
TArray< FIndex3i >& TrianglesOut, |
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. | CompGeom/Delaunay2.h | |
bool GetFilledTrianglesGeneralizedWinding
(
TArray< FIndex3i >& TrianglesOut, |
CompGeom/Delaunay2.h |
GetFilledTrianglesGeneralizedWinding(TArray< FIndex3i > &, TArrayView< const TVector2< double > >, TArrayView< const FIndex2i >, EFillMode)
Description
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.
| Name | GetFilledTrianglesGeneralizedWinding |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #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
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 | Remarks |
|---|---|
| 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 |
GetFilledTrianglesGeneralizedWinding(TArray< FIndex3i > &, TArrayView< const TVector2< float > >, TArrayView< const FIndex2i >, EFillMode)
| Name | GetFilledTrianglesGeneralizedWinding |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/Delaunay2.cpp |
bool GetFilledTrianglesGeneralizedWinding
(
TArray < FIndex3i > & TrianglesOut,
TArrayView < const TVector2 < float > > Vertices,
TArrayView < const FIndex2i > Edges,
EFillMode FillMode
) const