Navigation
API > API/Runtime > API/Runtime/GeometryCore
Generate an oriented Box mesh with the smallest number of triangles possible (6 vertices, 12 triangles)
| Name | FMinimalBoxMeshGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Generators/MinimalBoxMeshGenerator.h |
| Include Path | #include "Generators/MinimalBoxMeshGenerator.h" |
Syntax
class FMinimalBoxMeshGenerator : public UE::Geometry::FMeshShapeGenerator
Inheritance Hierarchy
- FMeshShapeGenerator → FMinimalBoxMeshGenerator
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Box | FOrientedBox3d | 3D box | Generators/MinimalBoxMeshGenerator.h | |
| bScaleUVByAspectRatio | bool | If true (default), UVs are scaled so that there is no stretching. | Generators/MinimalBoxMeshGenerator.h |
Functions
Public
Overridden from FMeshShapeGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FMeshShapeGenerator & Generate() |
Generate the mesh | Generators/MinimalBoxMeshGenerator.h |