deprecated_A3DProjectPointCloud2

A3DStatus deprecated_A3DProjectPointCloud2(A3DProjectPointCloudManager *pManager, A3DUns32 uPointCloudSize, A3DVector3dData *pPointCloudToProject, A3DBool bUseExactComputation, A3DUns32 uNbThreads, A3DDouble dInsidePointEdgeTolerance, A3DProjectedPointCloudData **ppProjectedPointCloud)

deprecated

A3DStatus deprecated_A3DProjectPointCloud2(A3DProjectPointCloudManager* pManager, A3DUns32 uPointCloudSize, A3DVector3dData* pPointCloudToProject, A3DBool bUseExactComputation, A3DUns32 uNbThreads, A3DDouble dInsidePointEdgeTolerance, A3DProjectedPointCloudData** ppProjectedPointCloud)

Function to project Point Cloud on BrepModel with a A3DProjectPointCloudManager.

8.1

Warning

use A3DProjectPointCloud3() instead. This will be removed in version 2026.1.0.

Memory Management

In case of success, ppProjectedPointCloud contains heap allocated memory you are responsible for. To free the memory on ppProjectedPointCloud, call deprecated_A3DProjectPointCloud2 by setting pManager to 0. In this case, all other parameters are ignored:

deprecated_A3DProjectPointCloud2(0,0,0,A3D_FALSE,0,0.0,ppProjectedPointCloud);

Parameters

pManager: A3DProjectPointCloudManager created by A3DProjectPointCloudManagerCreateFromModelFile() function.

uPointCloudSize: Number of points in pPointCloudToProject.

pPointCloudToProject: Point cloud to project. This point cloud must be in the same coordinate system as the BrepData structures stored in BrepModel.

bUseExactComputation: Flag to use exact topology. When this flag is false, the algorithm drops the point cloud on the faceted geometry, otherwise, the exact topology is used.

uNbThreads: Number of threads wanted. 0 means non multi-thread. Please avoid setting a number of threads larger than the number of CPU cores.

dInsidePointEdgeTolerance: Tolerance used to check if projection point which is inside a face is on edge.

ppProjectedPointCloud: Point cloud projected.

Returns

A3D_SUCCESS on success, or an error code on failure