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