Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include | #include "CompGeom/ConvexDecomposition3.h" |
Syntax
struct FNegativeSpaceSampleSettings
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowSamplesInsideMesh | Whether to allow samples to be added inside the mesh, based on winding number. Can enabled for non-solid meshes; note the convex decomposition should then set bTreatAsSolid to false as well. | |
| bool | bAllowSamplesInsideSpheres | Whether to allow samples w/ center inside other negative space spheres. | |
| bool | bDeterministic | Attempt to keep negative space computation deterministic, at some additional runtime cost. | |
| bool | bOnlyConnectedToHull | Whether to only consider negative space that is connected to the bounding convex hull, i.e., to ignore hollow inner pockets of negative space that cannot be reached from the outside (for VoxelSearch and Navigable methods) | |
| bool | bRequireSearchSampleCoverage | Whether to require that all candidate sample locations identified by Voxel Search are covered by negative space samples, up to the specified Min Sample Spacing. | |
| double | MarchingCubesGridScale | Scale factor for marching cubes grid used for VoxelSearch-based methods. | |
| int32 | MaxVoxelsPerDim | Maximum number of voxels to use per dimension, when performing VoxelSearch. | |
| double | MinRadius | Ignore spheres with smaller radius than this. | |
| double | MinSpacing | Minimum desired spacing between sampling spheres; not a strictly enforced bound. | |
| TFunction< double(FVector Pos)> | OptionalObstacleSDF | Optional function to define an obstacle SDF which the negative space should also stay out of. | |
| double | ReduceRadiusMargin | Space to allow between spheres and actual surface. | |
| ESampleMethod | SampleMethod | Method used to place samples. | |
| int32 | TargetNumSamples | Target number of spheres to use to cover negative space. Intended as a rough guide; actual number used may be larger or smaller. | |
| double | VoxelExpandBoundsFactor | How much to expand the bounding box used for voxel search algorithms. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNegativeSpaceSampleSettings
(
int32 TargetNumSamples, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyDefaults
(
EConfigDefaults Settings |
Note: Class member default values are held fixed to avoid changing results for existing callers Use this method to request newer, recommended defaults | |
| double | |||
| FTransform | |||
| double | ObstacleDistance
(
const FVector3d& LocalPos |
Helper to evaluate OptionalObstacleSDF for local positions | |
| void | Rescale
(
double ScaleFactor |
||
| void | Sanitize () |
Make sure the settings values are in valid ranges. | |
| void | SetResultTransform
(
FTransform InResultTransform |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EConfigDefaults | Enum to manage settings configurations for FNegativeSpaceSampleSettings. | ||
| ESampleMethod |