Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FConvexDecomposition3
Description
Find and set a new negative space that should be protected (clearing any existing). Uses the mesh passed on construction or to InitializeFromMesh or InitializeFromIndexMesh.
| Name | InitializeNegativeSpace |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include Path | #include "CompGeom/ConvexDecomposition3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexDecomposition3.cpp |
bool InitializeNegativeSpace
(
const FNegativeSpaceSampleSettings & Settings,
TArrayView < const FVector3d > RequestedSamples
)
False on failure e.g., if there was no mesh available
Parameters
| Name | Remarks |
|---|---|
| Settings | Settings to use to find the negative space |
| RequestedSamples | Optional points where we should sample the negative space, in addition to spheres automatically added via the Settings. Settings still apply to filter (bAllowSamplesInsideMesh) and to determine sphere radii. |