Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshBulkEdit
Description
Set the vertex, triangle and edge count.
If EdgeCount is set > 0, SetTriEdgeIndices and SetEdge should be called for all triangles and edges respectively.
If EdgeCount is set to 0, these methods do not need to be called, the edge topology will be built in Finalize.
Providing edges explicitly, if available, is of course the faster option.
SetVertex, SetTriVertexIndices should be called exactly once per vertex/triangle.
| Name | Initialize |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshBulkEdit.h |
| Include Path | #include "DynamicMesh/DynamicMeshBulkEdit.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMeshBulkEdit.cpp |
void Initialize
(
int VertexCount,
int TriangleCount,
int EdgeCount
)