Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Generators
Inheritance Hierarchy
- FMeshShapeGenerator
- FPlanarPolygonMeshGenerator
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Generators/PlanarPolygonMeshGenerator.h |
| Include | #include "Generators/PlanarPolygonMeshGenerator.h" |
Syntax
class FPlanarPolygonMeshGenerator : public UE::Geometry::FMeshShapeGenerator
Remarks
Generate planar triangulation of a Polygon.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FIndex2i | IndicesMap | How to map 2D indices to 3D. Default is (0,1) = (x,y,0). | |
| FVector3f | Normal | Normal vector of all vertices will be set to this value. Default is +Z axis. | |
| FPolygon2d | Polygon | Polygon to triangulate. If Polygon has self-intersections or degenerate edges, result is undefined. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector3d | MakeVertex
(
double x, |
Create vertex at position under IndicesMap, shifted to Origin | |
| void | SetPolygon
(
const TArray< FVector2D >& PolygonVerts |
Initialize the polygon from an array of 2D vertices |
Overridden from FMeshShapeGenerator
| Type | Name | Description | |
|---|---|---|---|
| FMeshShapeGenerator & | Generate () |
Generate the triangulation |