A3DCrvLocalProjectPoint

A3DStatus A3DCrvLocalProjectPoint(const A3DCrvBase *pCrv, const A3DVector3dData *pPointToProject, A3DDouble dGuessParameter, A3DBool *pbFindSolution, A3DDouble *pdSolutionParameter, A3DDouble *pdSolutionDistance)
A3DStatus A3DCrvLocalProjectPoint(const A3DCrvBase* pCrv, const A3DVector3dData* pPointToProject, A3DDouble dGuessParameter, A3DBool* pbFindSolution, A3DDouble* pdSolutionParameter, A3DDouble* pdSolutionDistance)

This function projects a point on a curve with a guess parameter pdSolutionParameter and pdSolutionDistance give the parameter on the curve and the spatial distance between pPointToProject and the solution (on the curve).

Parameters

pCrv: The input curve.

pPointToProject: The input point to project on curve.

dGuessParameter: The input guess parameters.

pbFindSolution: Result status.

pdSolutionParameter: parameter solution.

pdSolutionDistance: spatial distance (optional).

Returns

A3D_SUCCESS on success, or an error code on failure