FPlanarPolygonMeshGenerator

Generate planar triangulation of a Polygon.

Windows
MacOS
Linux

Inheritance Hierarchy

FMeshShapeGenerator

FPlanarPolygonMeshGenerator

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Generators/PlanarPolygonMeshGenerator.h

Include

#include "Generators/PlanarPolygonMeshGenerator.h"

Syntax

class FPlanarPolygonMeshGenerator : public FMeshShapeGenerator

Remarks

Generate planar triangulation of a Polygon.

Variables

Name Description

Public variable

FIndex2i

 

IndicesMap

How to map 2D indices to 3D. Default is (0,1) = (x,y,0).

Public variable

FVector3f

 

Normal

Normal vector of all vertices will be set to this value. Default is +Z axis.

Public variable

FPolygon2d

 

Polygon

Polygon to triangulate. If Polygon has self-intersections or degenerate edges, result is undefined.

Constructors

Functions

Name Description

Public function

FVector3d

 

MakeVertex

(
    double x,
    double y
)

Create vertex at position under IndicesMap, shifted to Origin

Public function

void

 

SetPolygon

(
    const TArray< FVector2D >& Polygon...
)

Initialize the polygon from an array of 2D vertices

Overridden from FMeshShapeGenerator

Name Description

Public function Virtual

FMeshShapeGe...

 

Generate()

Generate the triangulation

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss