A3DProjectPointCloud3
-
A3DStatus
A3DProjectPointCloud3(A3DProjectPointCloudManager *pManager, A3DUns32 uPointCloudSize, A3DVector3dData const *pPointCloudToProject, A3DProjectPointCloudOptionsData const *pOptions, A3DProjectedPointCloudData **ppProjectedPointCloud) A3DStatusA3DProjectPointCloud3(A3DProjectPointCloudManager* pManager,A3DUns32uPointCloudSize,A3DVector3dData* pPointCloudToProject,A3DProjectPointCloudOptionsData* pOptions,A3DProjectedPointCloudData** ppProjectedPointCloud)Function to project Point Cloud on BrepModel with a
A3DProjectPointCloudManager.22.2Return Values
A3D_SUCCESS:
A3D_INVALID_DATA_STRUCT_NULL:
A3D_INVALID_DATA_STRUCT_SIZE:
A3D_INVALID_ENTITY_TYPE:
A3D_INVALID_DATA:
A3D_ERROR:
If
A3DProjectPointCloudManagerCreateFromRI()is used to create pManager, andA3DProjectPointCloudManagerDataFromRI::m_bUseExactComputationis set to false, you can’t set bUseExactComputation to true. In this case, an A3D_INVALID_DATA error is returned.Memory Management
In case of success,
ppProjectedPointCloudcontains heap allocated memory you are responsible for. To free the memory onppProjectedPointCloud, callA3DProjectPointCloud3by settingpManagerto 0. In this case, all other parameters are ignored:A3DProjectPointCloud3(0, 0, 0, 0, ppProjectedPointCloud);
Parameters
pManager:
A3DProjectPointCloudManagercreated byA3DProjectPointCloudManagerCreateFromModelFile()function.uPointCloudSize: Number of points in pPointCloudToProject.
pPointCloudToProject: Point cloud to project. May also contain normals directions (ordered as follow: Point1, Normal1, Point 2, Normal2, etc.) depending on the
A3DProjectPointCloudOptionsData::m_bPreferFaceTowardScanoption. This point cloud must be in the same coordinate system as the BrepData structures stored in BrepModel.pOptions: Structure containing options (must be set). see
A3DProjectPointCloudOptionsDatappProjectedPointCloud: Point cloud projected.
Returns
A3D_SUCCESSon success, or an error code on failure