Returns the 3D point on a plane that is closest to a test point.
Rhino.PlaneClosestPoint (arrPlane, arrPoint)
|
arrPlane |
Required. Array. The plane. The elements of a plane array are as follows:
| ||||||||
|
arrPoint |
Required. Array. The 3D point to test. |
|
Array |
The 3D point on the plane, if successful. |
|
Null |
If not successful, or on error. |
Dim arrPlane, arrPoint
arrPoint = Rhino.GetPoint("Point to test")
If IsArray(arrPoint) Then
arrPlane = Rhino.ViewCPlane
If IsArray(arrPlane) Then
MsgBox Rhino.Pt2Str(Rhino.PlaneClosestPoint(arrPlane, arrPoint))
End If
End If