A3DCrvProjectPoint
-
A3DStatus
A3DCrvProjectPoint(const A3DCrvBase *pCrv, const A3DVector3dData *pPointToProject, A3DUns32 *puiNbSolutions, A3DDouble **ppdSolutionParameter, A3DDouble **ppdSolutionDistance) A3DStatusA3DCrvProjectPoint(constA3DCrvBase* pCrv, constA3DVector3dData* pPointToProject,A3DUns32* puiNbSolutions,A3DDouble** ppdSolutionParameter,A3DDouble** ppdSolutionDistance)This function projects a point on a curve.
ppdSolutionParameter and ppdSolutionDistance arrays give the parameter on the curve and the spatial distance between pPointToProject and the solution (on the curve). In order to free output arrays call again A3DCrvProjectPoint with curve sets to A3D_NULL_HANDLE.
5.0Return Values
A3D_SUCCESS:
A3D_ERROR:
Parameters
pCrv: The input curve.
pPointToProject: The input point to project on curve.
puiNbSolutions: The number of returned solutions.
ppdSolutionParameter: Array of parameters on the curve.
ppdSolutionDistance: Array of spatial distances between pPointToProject and the solution (on the curve).
Returns
A3D_SUCCESSon success, or an error code on failure