UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PolygonTriangulation Namespace Reference

Functions

template GEOMETRYCORE_API void TriangulateSimplePolygon< float > (const TArray< TVector2< float > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill)
 
template GEOMETRYCORE_API void TriangulateSimplePolygon< double > (const TArray< TVector2< double > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill)
 
template GEOMETRYCORE_API void ComputePolygonPlane< float > (const TArray< TVector< float > > &VertexPositions, TVector< float > &NormalOut, TVector< float > &PlanePointOut)
 
template GEOMETRYCORE_API void ComputePolygonPlane< double > (const TArray< TVector< double > > &VertexPositions, TVector< double > &NormalOut, TVector< double > &PlanePointOut)
 
template GEOMETRYCORE_API void TriangulateSimplePolygon< float > (const TArray< TVector< float > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill)
 
template GEOMETRYCORE_API void TriangulateSimplePolygon< double > (const TArray< TVector< double > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill)
 
template<typename RealType >
void GEOMETRYCORE_API TriangulateSimplePolygon (const TArray< TVector2< RealType > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill=true)
 
template<typename RealType >
void GEOMETRYCORE_API ComputePolygonPlane (const TArray< TVector< RealType > > &VertexPositions, TVector< RealType > &PlaneNormalOut, TVector< RealType > &PlanePointOut)
 
template<typename RealType >
void GEOMETRYCORE_API TriangulateSimplePolygon (const TArray< TVector< RealType > > &VertexPositions, TArray< FIndex3i > &OutTriangles, bool bOrientAsHoleFill=true)
 

Function Documentation

◆ ComputePolygonPlane()

template<typename RealType >
void GEOMETRYCORE_API PolygonTriangulation::ComputePolygonPlane ( const TArray< TVector< RealType > > &  VertexPositions,
TVector< RealType > &  PlaneNormalOut,
TVector< RealType > &  PlanePointOut 
)

◆ ComputePolygonPlane< double >()

template GEOMETRYCORE_API void PolygonTriangulation::ComputePolygonPlane< double > ( const TArray< TVector< double > > &  VertexPositions,
TVector< double > &  NormalOut,
TVector< double > &  PlanePointOut 
)

◆ ComputePolygonPlane< float >()

template GEOMETRYCORE_API void PolygonTriangulation::ComputePolygonPlane< float > ( const TArray< TVector< float > > &  VertexPositions,
TVector< float > &  NormalOut,
TVector< float > &  PlanePointOut 
)

◆ TriangulateSimplePolygon() [1/2]

template<typename RealType >
void GEOMETRYCORE_API PolygonTriangulation::TriangulateSimplePolygon ( const TArray< TVector2< RealType > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill = true 
)

Compute triangulation of simple 2D polygon using ear-clipping

Parameters
VertexPositionsordered vertices of 2D polygon
OutTrianglescomputed triangulation. Each triangle is a tuple of indices into VertexPositions.
bOrientAsHoleFillif true, output triangles are wound opposite of the input polygon; this is typically desired when the polygon comes from the boundary of a hole

◆ TriangulateSimplePolygon() [2/2]

template<typename RealType >
void GEOMETRYCORE_API PolygonTriangulation::TriangulateSimplePolygon ( const TArray< TVector< RealType > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill = true 
)

Compute triangulation of 3D simple polygon using ear-clipping

Parameters
VertexPositionsordered vertices of 3D polygon
OutTrianglescomputed triangulation. Each triangle is a tuple of indices into VertexPositions.
bOrientAsHoleFillif true, output triangles are wound opposite of the input polygon; this is typically desired when the polygon comes from the boundary of a hole

◆ TriangulateSimplePolygon< double >() [1/2]

template GEOMETRYCORE_API void PolygonTriangulation::TriangulateSimplePolygon< double > ( const TArray< TVector2< double > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill 
)

◆ TriangulateSimplePolygon< double >() [2/2]

template GEOMETRYCORE_API void PolygonTriangulation::TriangulateSimplePolygon< double > ( const TArray< TVector< double > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill 
)

◆ TriangulateSimplePolygon< float >() [1/2]

template GEOMETRYCORE_API void PolygonTriangulation::TriangulateSimplePolygon< float > ( const TArray< TVector2< float > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill 
)

◆ TriangulateSimplePolygon< float >() [2/2]

template GEOMETRYCORE_API void PolygonTriangulation::TriangulateSimplePolygon< float > ( const TArray< TVector< float > > &  VertexPositions,
TArray< FIndex3i > &  OutTriangles,
bool  bOrientAsHoleFill 
)