![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RectangleMeshGenerator.h>
Inheritance diagram for UE::Geometry::FRectangleMeshGenerator:Public Attributes | |
| FVector3d | Origin |
| FVector3f | Normal |
| double | Width |
| double | Height |
| int | WidthVertexCount |
| int | HeightVertexCount |
| bool | bScaleUVByAspectRatio = true |
| bool | bSinglePolyGroup = false |
| FIndex2i | IndicesMap |
Public Attributes inherited from UE::Geometry::FMeshShapeGenerator | |
| TArray< FVector3d > | Vertices |
| TArray< FVector2f > | UVs |
| TArray< int > | UVParentVertex |
| TArray< FVector3f > | Normals |
| TArray< int > | NormalParentVertex |
| TArray< FIndex3i > | Triangles |
| TArray< FIndex3i > | TriangleUVs |
| TArray< FIndex3i > | TriangleNormals |
| TArray< int > | TrianglePolygonIDs |
| bool | bReverseOrientation = false |
Additional Inherited Members | |
Static Public Member Functions inherited from UE::Geometry::FMeshShapeGenerator | |
| static FVector3d | BilinearInterp (const FVector3d &v00, const FVector3d &v10, const FVector3d &v11, const FVector3d &v01, double tx, double ty) |
| static FVector2d | BilinearInterp (const FVector2d &v00, const FVector2d &v10, const FVector2d &v11, const FVector2d &v01, double tx, double ty) |
| static FVector2f | BilinearInterp (const FVector2f &v00, const FVector2f &v10, const FVector2f &v11, const FVector2f &v01, float tx, float ty) |
| static FVector3i | LinearInterp (const FVector3i &a, const FVector3i &b, double t) |
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
| FRectangleMeshGenerator::FRectangleMeshGenerator | ( | ) |
|
overridevirtual |
Generate the mesh
Implements UE::Geometry::FMeshShapeGenerator.
Reimplemented in UE::Geometry::FRoundedRectangleMeshGenerator.
|
inlinevirtual |
Create vertex at position under IndicesMap, shifted to Origin
If true (default), UVs are scaled so that there is no stretching. If false, UVs are scaled to fill unit square
If true, output mesh has a single polygroup, otherwise each quad gets a separate group
| double UE::Geometry::FRectangleMeshGenerator::Height |
Height of rectangle
| int UE::Geometry::FRectangleMeshGenerator::HeightVertexCount |
Number of vertices along Height axis
| FIndex2i UE::Geometry::FRectangleMeshGenerator::IndicesMap |
Specifies how 2D indices are mapped to 3D points. Default is (0,1) = (x,y,0).
| FVector3f UE::Geometry::FRectangleMeshGenerator::Normal |
Normal vector of all vertices will be set to this value. Default is +Z axis.
| FVector3d UE::Geometry::FRectangleMeshGenerator::Origin |
Rectangle will be translated so that center is at this point
| double UE::Geometry::FRectangleMeshGenerator::Width |
Width of rectangle
| int UE::Geometry::FRectangleMeshGenerator::WidthVertexCount |
Number of vertices along Width axis