Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FConvexDecomposition3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include | #include "CompGeom/ConvexDecomposition3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexDecomposition3.cpp |
void InitializeFromIndexMesh
&40;
TArrayView< const FVector3f > Vertices,
TArrayView< const FIntVector > Faces,
bool bMergeEdges,
int32 FaceVertexOffset
&41;
Remarks
Initialize convex decomposition with a triangle index mesh
Parameters
| Name | Description |
|---|---|
| Vertices | Vertex buffer for mesh to decompose |
| Faces | Triangle buffer for mesh to decompose |
| bMergeEdges | Whether to attempt to weld matching edges before computing the convex hull; this can help the convex decomposition find better cutting planes for meshes that have boundaries e.g. due to seams |
| FaceVertexOffset | Indices from the Faces array are optionally offset by this value. Useful e.g. to take slices of the multi-geometry vertex and face buffers of FGeometryCollection. |