Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing > API/Plugins/ModelingComponents/Drawing/UTriangleSetComponent
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/TriangleSetComponent.h |
| Include | #include "Drawing/TriangleSetComponent.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/TriangleSetComponent.cpp |
void AddTriangles
(
int32 NumIndices,
TFunctionRef < void Index, TArray < FRenderableTriangle > &TrianglesOut)> TriangleGenFunc,
int32 TrianglesPerIndexHint,
bool bDeferRenderStateDirty
)
Remarks
Add a set of triangles for each index in a sequence
Parameters
| Name | Description |
|---|---|
| NumIndices | iterate from 0...NumIndices and call TriangleGenFunc() for each value |
| TriangleGenFunc | called to fetch the triangles for an index, callee filles TrianglesOut array (reset before each call) |
| TrianglesPerIndexHint | if > 0, will reserve space for NumIndices*TrianglesPerIndexHint new triangles |