Navigation
API > API/Runtime > API/Runtime/GeometryCore
Generate a mesh of a box that has "gridded" faces, i.e. grid of triangulated quads, with EdgeVertices setting the number of verts along each edge in each dimension
| Name | FGridBoxMeshGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Generators/GridBoxMeshGenerator.h |
| Include Path | #include "Generators/GridBoxMeshGenerator.h" |
Syntax
class FGridBoxMeshGenerator : public UE::Geometry::FMeshShapeGenerator
Inheritance Hierarchy
- FMeshShapeGenerator → FGridBoxMeshGenerator
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Box | FOrientedBox3d | 3D box | Generators/GridBoxMeshGenerator.h | |
| bPolygroupPerQuad | bool | If true, each quad of box gets a separate polygroup | Generators/GridBoxMeshGenerator.h | |
| bScaleUVByAspectRatio | bool | If true (default), UVs are scaled so that there is no stretching. | Generators/GridBoxMeshGenerator.h | |
| EdgeVertices | FIndex3i | Generators/GridBoxMeshGenerator.h |
Functions
Public
Overridden from FMeshShapeGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FMeshShapeGenerator & Generate() |
Generate the mesh | Generators/GridBoxMeshGenerator.h |