Returns the distance from a 3-D point to a plane.
rhinoscriptsyntax.DistanceToPlane (plane, point)
rhinoscript.plane.DistanceToPlane (plane, point)
plane |
Required. The plane. |
point |
Required. List of 3 numbers or Point3d |
Number |
The distance if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
point = rs.GetPoint("Point to test")
if point:
plane = rs.ViewCPlane()
if plane:
distance = rs.DistanceToPlane(plane, point)
if distance is not None:
print "Distance to plane: ", distance