MeshLib Documentation
Loading...
Searching...
No Matches
MR::DistanceToMeshOptions Struct Reference

#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
 

Member Data Documentation

◆ maxDistSq

float MR::DistanceToMeshOptions::maxDistSq { FLT_MAX }

maximum squared distance from a point to mesh

◆ minDistSq

float MR::DistanceToMeshOptions::minDistSq { 0 }

minimum squared distance from a point to mesh

◆ signMode

SignDetectionMode MR::DistanceToMeshOptions::signMode { SignDetectionMode::ProjectionNormal }

the method to compute distance sign

◆ windingNumberBeta

float MR::DistanceToMeshOptions::windingNumberBeta = 2

only for SignDetectionMode::HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1

◆ windingNumberThreshold

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


The documentation for this struct was generated from the following file: