Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/CollisionFunctions.h |
| Include | #include "GeometryScript/CollisionFunctions.h" |
Syntax
USTRUCT (BlueprintType )
struct FComputeNegativeSpaceOptions
Remarks
Options controlling how to sample the negative space of shapes, e.g. to define a region that must be avoided when merging collision shapes.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOnlyConnectedToHull | When performing Voxel Search, only look for negative space that is connected out to the convex hull. | |
| bool | bRequireSearchSampleCoverage | Whether to require that all candidate locations identified by Voxel Search are covered by negative space samples, up to the specified Min Sample Spacing. | |
| int32 | MaxVoxelsPerDim | When performing Voxel Search, maximum number of voxels to use along each dimension | |
| double | MinRadius | Spheres smaller than this are not included in the negative space | |
| double | MinSampleSpacing | Minimum desired spacing between sphere centers; if > 0, will attempt not to place sphere centers closer than this | |
| double | NegativeSpaceTolerance | Amount of space to leave between convex hulls and protected negative space | |
| ENegativeSpaceSampleMethod | SampleMethod | Method to use to find and sample negative space | |
| int32 | TargetNumSamples | Approximate number of spheres to consider when covering negative space |