3. HoughNormals plugin

HoughNormals is a standard plugin of cloudComPy.

The availability of the plugin can be tested with the cloudComPy.isPluginHoughNormals() function:

isHoughNormals_available = cc.isPluginHoughNormals()

HoughNormals is a submodule of cloudCompy:

import cloudComPy as cc
# ...
if cc.isPluginHoughNormals():
    import cloudComPy.HoughNormals
    cc.HoughNormals.computeHoughNormals(...)
cloudComPy.HoughNormals.computeHoughNormals(cloud: _cloudComPy.ccPointCloud, K: SupportsInt | SupportsIndex = 100, T: SupportsInt | SupportsIndex = 1000, n_phi: SupportsInt | SupportsIndex = 15, n_rot: SupportsInt | SupportsIndex = 5, use_density: bool = False, tol_angle_rad: SupportsFloat | SupportsIndex = 0.7900000214576721, k_density: SupportsInt | SupportsIndex = 5) None

Compute Hough normals for a point cloud.

Parameters:
  • cloud (ccPointCloud) – input point cloud.

  • int,optionalK – number of nearest neighbors to consider, default is 100.

  • T (int,optional) – number of planes, default is 1000.

  • n_phi (int,optional) – accumulator steps, default is 15.

  • n_rot (int,optional) – number of rotation, default is 5.

  • use_density (bool,optional) – whether to use density information, default is false.

  • tol_angle_rad (float,optional) – tolerance for angle comparison, default is 0.79.

  • k_density (int,optional) – number of neighbors for density estimation, default is 5.

cloudComPy.HoughNormals.initTrace_HoughNormals() None

Debug trace must be initialized for each Python module.

Done in module init, following the value of environment variable _CCTRACE_ (“ON” if debug traces wanted)