Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/ShapeApproximation
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/ShapeApproximation/ShapeDetection3.h |
| Include | #include "ShapeApproximation/ShapeDetection3.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/ShapeApproximation/ShapeDetection3.cpp |
namespace UE
{
namespace Geometry
{
bool UE&58;&58;Geometry&58;&58;IsSphereMesh
&40;
const FDynamicMesh3 & Mesh,
FSphere3d & SphereOut,
double RelativeDeviationTol
&41;
}
}
Remarks
Detect if input Mesh is a meshed approximation of an analytic Sphere, and if so return best guess in SphereOut. Fits a sphere to input points with several rounds of incremental improvement, then measures chordal deviation of edge midpoints. true if mesh is a Sphere and SphereOut is initialized
Parameters
| Name | Description |
|---|---|
| RelativeDeviationTol | distances from edge midpoints to sphere surface are allowed to deviate by 2RadiusRelativeDeviationTol |