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 InitializeFromHulls
(
int32 NumHulls,
TFunctionRef < double)> HullVolumes,
TFunctionRef < int32 )> HullNumVertices,
TFunctionRef < FVector3d , int32 )> HullVertices,
TArrayView < const TPair < int32 , int32 > > Proximity
)
Remarks
Initialize from convex hulls allows the caller to only use the hull merging phase of the algorithm
Parameters
| Name | Description |
|---|---|
| NumHulls | Number of convex hulls in the initial decomposition |
| HullVolumes | Function from Hull Index -> Hull Volume |
| HullNumVertices | Function from Hull Index -> Hull Vertex Count |
| HullVertices | Function from Hull Index, Vertex Index -> Hull Vertex Position |
| Proximity | All the local proximities for the hulls. Hulls will not be merged unless they are connected by this proximity graph. |