Navigation
API > API/Runtime > API/Runtime/GeometryCore
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PolygonTriangulation::TriangulateSimplePolygon
(
const TArray< TVector2< RealType > >& VertexPositions, |
Compute triangulation of simple 2D polygon using ear-clipping | CompGeom/PolygonTriangulation.h | |
void PolygonTriangulation::TriangulateSimplePolygon
(
const TArray< TVector< RealType > >& VertexPositions, |
Compute triangulation of 3D simple polygon using ear-clipping | CompGeom/PolygonTriangulation.h |
PolygonTriangulation::TriangulateSimplePolygon(const TArray< TVector2< RealType > > &, TArray< FIndex3i > &, bool)
Description
Compute triangulation of simple 2D polygon using ear-clipping
| Name | PolygonTriangulation::TriangulateSimplePolygon |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/PolygonTriangulation.h |
| Include Path | #include "CompGeom/PolygonTriangulation.h" |
namespace PolygonTriangulation
{
template<typename RealType>
void PolygonTriangulation::TriangulateSimplePolygon
(
const TArray < TVector2 < RealType > > & VertexPositions,
TArray < FIndex3i > & OutTriangles,
bool bOrientAsHoleFill
)
}
Parameters
| Name | Remarks |
|---|---|
| VertexPositions | ordered vertices of 2D polygon |
| OutTriangles | computed triangulation. Each triangle is a tuple of indices into VertexPositions. |
| bOrientAsHoleFill | if true, output triangles are wound opposite of the input polygon; this is typically desired when the polygon comes from the boundary of a hole |
PolygonTriangulation::TriangulateSimplePolygon(const TArray< TVector< RealType > > &, TArray< FIndex3i > &, bool)
Description
Compute triangulation of 3D simple polygon using ear-clipping
| Name | PolygonTriangulation::TriangulateSimplePolygon |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/PolygonTriangulation.h |
| Include Path | #include "CompGeom/PolygonTriangulation.h" |
namespace PolygonTriangulation
{
template<typename RealType>
void PolygonTriangulation::TriangulateSimplePolygon
(
const TArray < TVector < RealType > > & VertexPositions,
TArray < FIndex3i > & OutTriangles,
bool bOrientAsHoleFill
)
}
Parameters
| Name | Remarks |
|---|---|
| VertexPositions | ordered vertices of 3D polygon |
| OutTriangles | computed triangulation. Each triangle is a tuple of indices into VertexPositions. |
| bOrientAsHoleFill | if true, output triangles are wound opposite of the input polygon; this is typically desired when the polygon comes from the boundary of a hole |