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