11. Geometrical Analysis Tools

11.1. Geometrical Analysis

class cloudComPy.GeometricalAnalysisTools

Bases: pybind11_object

Several algorithms to compute point-clouds geometric characteristics (curvature, density, etc.)

static FlagDuplicatePoints(theCloud: _cloudComPy.GenericIndexedCloudPersist, minDistanceBetweenPoints: float = 2.220446049250313e-16, progressCb: _cloudComPy.GenericProgressCallback = None, inputOctree: _cloudComPy.DgmOctree = None) _cloudComPy.ErrorCode

Flag duplicate points.

This method only requires an output scalar field. Duplicate points will be associated to scalar value 1 (and 0 for the others).

Parameters:
  • theCloud (GenericIndexedCloudPersist) – processed cloud

  • minDistanceBetweenPoints (float,optional) – min distance between (output) points, default C++ std::numeric_limits<double>::epsilon() i.e. ~ 2.2 e-16

  • progressCb (GenericProgressCallback,optional) – client application can get some notification of the process progress through this callback mechanism (see GenericProgressCallback)

  • inputOctree (DgmOctree,optional) – if not set as input, octree will be automatically computed.

Returns:

success (0) or error code (<0)

Return type:

ErrorCode

__init__(*args, **kwargs)
class cloudComPy.Density

Members:

DENSITY_KNN

DENSITY_2D

DENSITY_3D

DENSITY_2D = <Density.DENSITY_2D: 2>
DENSITY_3D = <Density.DENSITY_3D: 3>
DENSITY_KNN = <Density.DENSITY_KNN: 1>
__init__(self: _cloudComPy.Density, value: int) None
property name
property value
class cloudComPy.ErrorCode

Members:

NoError

InvalidInput

NotEnoughPoints

OctreeComputationFailed

ProcessFailed

UnhandledCharacteristic

NotEnoughMemory

ProcessCancelledByUser

InvalidInput = <ErrorCode.InvalidInput: -1>
NoError = <ErrorCode.NoError: 0>
NotEnoughMemory = <ErrorCode.NotEnoughMemory: -6>
NotEnoughPoints = <ErrorCode.NotEnoughPoints: -2>
OctreeComputationFailed = <ErrorCode.OctreeComputationFailed: -3>
ProcessCancelledByUser = <ErrorCode.ProcessCancelledByUser: -7>
ProcessFailed = <ErrorCode.ProcessFailed: -4>
UnhandledCharacteristic = <ErrorCode.UnhandledCharacteristic: -5>
__init__(self: _cloudComPy.ErrorCode, value: int) None
property name
property value