7. PCV plugin
PCV is a standard plugin of cloudComPy.
The availability of the plugin can be tested with the cloudComPy.isPluginPCV()
function:
isPCV_available = cc.isPluginPCV()
PCV is a submodule of cloudCompy:
import cloudComPy as cc
# ...
if cc.isPluginPCV():
import cloudComPy.PCV
cc.PCV.computeShadeVIS(...)
- cloudComPy.PCV.computeShadeVIS(clouds: list[_cloudComPy.ccHObject], cloudWithNormals: _cloudComPy.ccPointCloud = None, rayCount: int = 256, resolution: int = 1024, is360: bool = False, isClosedMesh: bool = False) bool
Compute Ambient Occlusion for mesh or point cloud. (plugin PCV / ShadeVIS)
The ambient occlusion is either computed with normals samples on a sphere or upper Z hemisphere, or with normals provided with a cloud. Result on a ScalarField.
- Parameters:
clouds (list) – list of clouds or meshes on witch to compute the ShadeVIS.
cloudWithNormals (ccpointCloud,optional) – cloud with normals, default None
rayCount (int,optional) – number of normals to use if sampled on a sphere or hemisphere, default 256.
resolution (int,optional) – render context resolution, default 1024
is360 (bool,optional) – use the whole sphere or not (default false)
isClosedMesh (bool,optional) – if the mesh is closed, accelerate the computation (default false)
- Returns:
success
- Return type:
bool
- cloudComPy.PCV.initTrace_PCV() 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)