Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDelaunay2
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Triangulate
(
TArrayView< const TVector2< double > > Vertices, |
TODO: it would often be useful to pass in sparse vertex data / Optional function to allow Triangulate to skip vertices. | CompGeom/Delaunay2.h | |
bool Triangulate
(
TArrayView< const TVector2< float > > Vertices, |
CompGeom/Delaunay2.h | ||
bool Triangulate
(
const TPolygon2< RealType >& Polygon, |
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. | CompGeom/Delaunay2.h | |
bool Triangulate
(
const TGeneralPolygon2< RealType >& GeneralPolygon, |
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. | CompGeom/Delaunay2.h |
Triangulate(TArrayView< const TVector2< double > >, TArrayView< const FIndex2i >)
Description
Compute an (optionally constrained) Delaunay triangulation. Note this clears any previously-held triangulation data, and triangulates the passed-in vertices (and optional edges) from scratch
| Name | Triangulate |
| 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 Triangulate
(
TArrayView < const TVector2 < double > > Vertices,
TArrayView < const FIndex2i > Edges
)
false if triangulation failed
Triangulate(TArrayView< const TVector2< float > >, TArrayView< const FIndex2i >)
| Name | Triangulate |
| 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 Triangulate
(
TArrayView < const TVector2 < float > > Vertices,
TArrayView < const FIndex2i > Edges
)
Triangulate(const TPolygon2< RealType > &, TArray< FIndex3i > *)
Description
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
| Name | Triangulate |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
template<typename RealType>
bool Triangulate
(
const TPolygon2 < RealType > & Polygon,
TArray < FIndex3i > * TrianglesOut
)
Triangulate(const TGeneralPolygon2< RealType > &, TArray< FIndex3i > , TArray< TVector2< RealType > > , bool)
Description
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
| Name | Triangulate |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
template<typename RealType>
bool Triangulate
(
const TGeneralPolygon2 < RealType > & GeneralPolygon,
TArray < FIndex3i > * TrianglesOut,
TArray < TVector2 < RealType > > * VerticesOut,
bool bFallbackToGeneralizedWinding
)