#include <MRMeshDistance.h>
Public Attributes | |
float | minDistSq { 0 } |
minimum squared distance from a point to mesh | |
float | maxDistSq { FLT_MAX } |
maximum squared distance from a point to mesh | |
SignDetectionMode | signMode { SignDetectionMode::ProjectionNormal } |
the method to compute distance sign | |
float | windingNumberThreshold = 0.5f |
float | windingNumberBeta = 2 |
float MR::DistanceToMeshOptions::maxDistSq { FLT_MAX } |
maximum squared distance from a point to mesh
float MR::DistanceToMeshOptions::minDistSq { 0 } |
minimum squared distance from a point to mesh
SignDetectionMode MR::DistanceToMeshOptions::signMode { SignDetectionMode::ProjectionNormal } |
the method to compute distance sign
float MR::DistanceToMeshOptions::windingNumberBeta = 2 |
only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1
float MR::DistanceToMeshOptions::windingNumberThreshold = 0.5f |
only for SignDetectionMode::HoleWindingRule: positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes