Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/DynamicMeshBuilder.h |
| Include | #include "DynamicMeshBuilder.h" |
Syntax
class FDynamicMeshBuilder
Remarks
A utility used to construct dynamically generated meshes, and render them to a FPrimitiveDrawInterface. Note: This is meant to be easy to use, not fast. It moves the data around more than necessary, and requires dynamically allocating RHI resources. Exercise caution.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDynamicMeshBuilder
(
ERHIFeatureLevel::Type InFeatureLevel, |
Initialization constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddTriangle
(
int32 V0, |
Adds a triangle to the mesh. | |
| void | AddTriangles
(
const TArray< uint32 >& InIndices |
Add many indices to the mesh. | |
| int32 | Adds a vertex to the mesh. | ||
| int32 | AddVertex
(
const FDynamicMeshVertex& InVertex |
Adds a vertex to the mesh. | |
| int32 | AddVertices
(
const TArray< FDynamicMeshVertex >& InVertices |
Adds many vertices to the mesh. | |
| void | Draw
(
FPrimitiveDrawInterface* PDI, |
Draws the mesh to the given primitive draw interface. | |
| void | GetMesh
(
const FMatrix& LocalToWorld, |
Adds a mesh of what's been built so far to the collector. | |
| void | GetMesh
(
const FMatrix& LocalToWorld, |
||
| void | GetMesh
(
const FMatrix& LocalToWorld, |
||
| void | GetMesh
(
const FMatrix& LocalToWorld, |
||
| void | GetMesh
(
const FMatrix& LocalToWorld, |
||
| void | GetMeshElement
(
const FPrimitiveUniformShaderParameters& PrimitiveParams, |
||
| void | GetMeshElement
(
const FMatrix& LocalToWorld, |
||
| void | ReserveTriangles
(
int32 InNumTriangles |
Pre-allocate space for the given number of triangles. | |
| void | ReserveVertices
(
int32 InNumVertices |
Pre-allocate space for the given number of vertices. |