FRectangleMeshGenerator

Generate planar rectangular mesh with variable number of subdivisions along width and height.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GeometricObjects

Header

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

Include

#include "Generators/RectangleMeshGenerator.h"

Syntax

class FRectangleMeshGenerator : public FMeshShapeGenerator

Remarks

Generate planar rectangular mesh with variable number of subdivisions along width and height. By default, center of rectangle is centered at (0,0,0) origin

Variables

Name Description

Public variable

bool

 

bScaleUVByAspectRatio

If true (default), UVs are scaled so that there is no stretching.

Public variable

bool

 

bSinglePolygroup

If true, output mesh has a single polygroup, otherwise each quad gets a separate group

Public variable

double

 

Height

Height of rectangle

Public variable

int

 

HeightVertexCount

Number of vertices along Height axis

Public variable

FIndex2i

 

IndicesMap

Specifies how 2D indices are mapped to 3D points. 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

FVector3d

 

Origin

Rectangle will be translated so that center is at this point

Public variable

double

 

Width

Width of rectangle

Public variable

int

 

WidthVertexCount

Number of vertices along Width axis

Constructors

Name Description

Public function

FRectangleMeshGenerator()

Functions

Name Description

Public function Virtual

FVector3d

 

MakeVertex

(
    int CornerIndex,
    double x,
    double y
)

Create vertex at position under IndicesMap, shifted to Origin

Overridden from FMeshShapeGenerator

Name Description

Public function Virtual

FMeshShapeGe...

 

Generate()

Generate the mesh

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