Navigation
API > API/Runtime > API/Runtime/GeometryCore
Define a volume with a set of spheres.
| Name | FSphereCovering |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include Path | #include "CompGeom/ConvexDecomposition3.h" |
Syntax
class FSphereCovering
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Position | TArray< FVector3d > | Sphere centers. | CompGeom/ConvexDecomposition3.h | |
| Radius | TArray< double > | Sphere radii. | CompGeom/ConvexDecomposition3.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddNegativeSpace
(
const TFastWindingTree< FDynamicMesh3 >& Spatial, |
Note: This version of AddNegativeSpace assumed the input had flipped triangle orientations | CompGeom/ConvexDecomposition3.h | |
bool AddNegativeSpace
(
const TFastWindingTree< FDynamicMesh3 >& Spatial, |
Add spheres covering the negative space of the given fast winding tree | CompGeom/ConvexDecomposition3.h | |
void AddSphere
(
FVector3d InCenter, |
CompGeom/ConvexDecomposition3.h | ||
void Append
(
const FSphereCovering& Other |
CompGeom/ConvexDecomposition3.h | ||
void AppendSpheres
(
TArrayView< const UE::Math::TSphere< double > > Spheres |
CompGeom/ConvexDecomposition3.h | ||
void AppendTransformed
(
const FSphereCovering& Other, |
Append spheres from Other w/ the given Transform Note: Non-uniform scales will scale the radius by the smallest scale axis's magnitude (matching how physics collision transforms spheres) | CompGeom/ConvexDecomposition3.h | |
void ApplyTransform
(
const FTransform& Transform |
Apply transform to spheres Note: Non-uniform scales will scale the radius by the smallest scale axis's magnitude (matching how physics collision transforms spheres) | CompGeom/ConvexDecomposition3.h | |
FVector3d GetCenter
(
int32 Idx |
CompGeom/ConvexDecomposition3.h | ||
double GetRadius
(
int32 Idx |
CompGeom/ConvexDecomposition3.h | ||
int32 Num() |
CompGeom/ConvexDecomposition3.h | ||
void RemoveSmaller
(
double MinRadius |
Remove spheres with radius below a threshold. | CompGeom/ConvexDecomposition3.h | |
void Reset() |
CompGeom/ConvexDecomposition3.h | ||
void SetRadius
(
int32 Idx, |
CompGeom/ConvexDecomposition3.h |