Description
Projects the specified point on the NURBS curve.
Syntax
Function RFNurbsCurve.ProjectPoint(pPoint As RFPoint3, tolerance As Double, bLocal As Boolean, initialParam As Double, pPrjParam As Double, pPrjPoint As RFPoint3, pPrjDist As Double, pSuccess As Boolean) As RFErrorCode
The ProjectPoint syntax has these parts:
| Part | Description |
|---|---|
| pPoint | [IN] RFPoint3 Required. Point to project to the NURBS curve. |
| tolerance | [IN] Double Required. Distance tolerance to determine whether two points are at the same position. |
| bLocal | [IN] Boolean Required. It determines the projection method. |
| initialParam | [IN] Double Required. Initial parameter from which the calculation is started. |
| pPrjParam | [OUT] Double Required. Parameter of the projection point on the NURBS curve. |
| pPrjPoint | [OUT] RFPoint3 Required. Projection point on the NURBS curve. |
| pPrjDist | [OUT] Double Required. Distance between the point pPoint and its projection point pPrjPoint. |
| pSuccess | [OUT] Boolean Required. Boolean value indicating if the projection is successful or not. |
Settings
The bLocal has these settings:
| Value | Description |
|---|---|
| TRUE | Local projection is performed from the given initialParam parameter. i.e. globally minimum distance point projection is not assured. |
| FALSE | initialParam parameter is ignored and globally minimum distance point projection is performed. |
Remarks