CCCoreLib 31 May 2022
CloudCompare Core algorithms
Public Member Functions | Public Attributes | List of all members
CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams Struct Reference

Cloud-to-mesh distances computation parameters. More...

#include <DistanceComputationTools.h>

Collaboration diagram for CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams:
Collaboration graph
[legend]

Public Member Functions

 Cloud2MeshDistancesComputationParams ()
 Default constructor.
 

Public Attributes

unsigned char octreeLevel
 The level of subdivision of the octree at witch to apply the algorithm.
 
ScalarType maxSearchDist
 Max search distance (acceleration) More...
 
bool useDistanceMap
 Use distance map (acceleration) More...
 
bool signedDistances
 Whether to compute signed distances or not. More...
 
bool flipNormals
 Whether triangle normals should be computed in the 'direct' order (true) or 'indirect' (false)
 
bool multiThread
 Whether to use multi-thread or single thread mode (if maxSearchDist > 0, single thread mode is forced)
 
int maxThreadCount
 Maximum number of threads to use (0 = max)
 
PointCloudCPSet
 Cloud to store the Closest Point Set. More...
 

Detailed Description

Cloud-to-mesh distances computation parameters.

Member Data Documentation

◆ CPSet

PointCloud* CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams::CPSet

Cloud to store the Closest Point Set.

The cloud should be initialized but empty on input. It will have the same size as the compared cloud on output.

Warning
Not compatible with maxSearchDist > 0.

◆ maxSearchDist

ScalarType CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams::maxSearchDist

Max search distance (acceleration)

Default value: 0. If greater than 0, then the algorithm won't compute distances over this value

◆ signedDistances

bool CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams::signedDistances

Whether to compute signed distances or not.

If true, the computed distances will be signed (in this case, the Distance Transform can't be used and therefore useDistanceMap will be ignored)

◆ useDistanceMap

bool CCCoreLib::DistanceComputationTools::Cloud2MeshDistancesComputationParams::useDistanceMap

Use distance map (acceleration)

If true the distances will be aproximated by a Distance Transform.

Warning
Incompatible with signed distances or Closest Point Set.

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