Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Generators
Inheritance Hierarchy
References
Module
GeometryCore
Header
/Engine/Source/Runtime/GeometryCore/Public/Generators/RectangleMeshGenerator.h
Include
#include "Generators/RectangleMeshGenerator.h"
Syntax
class FRectangleMeshGenerator : public UE::Geometry::FMeshShapeGenerator
Copy full snippet
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
Type
Name
Description
bool
bScaleUVByAspectRatio
If true (default), UVs are scaled so that there is no stretching.
bool
bSinglePolyGroup
If true, output mesh has a single polygroup, otherwise each quad gets a separate group
double
Height
Height of rectangle
int
HeightVertexCount
Number of vertices along Height axis
FIndex2i
IndicesMap
Specifies how 2D indices are mapped to 3D points. Default is (0,1) = (x,y,0).
FVector3f
Normal
Normal vector of all vertices will be set to this value. Default is +Z axis.
FVector3d
Origin
Rectangle will be translated so that center is at this point
double
Width
Width of rectangle
int
WidthVertexCount
Number of vertices along Width axis
Constructors
Type
Name
Description
Functions
Type
Name
Description
FVector3d
MakeVertex
(
int CornerIndex,
double x,
double y
)
Create vertex at position under IndicesMap, shifted to Origin
Overridden from FMeshShapeGenerator