DistanceToPlane

Returns the distance from a 3-D point to a plane.

Syntax

rhinoscriptsyntax.DistanceToPlane (plane, point)

rhinoscript.plane.DistanceToPlane (plane, point)

Parameters

plane

Required.  The plane.

point

Required.  List of 3 numbers or Point3d

Returns

Number

The distance if successful.

None

If not successful, or on error.

Example

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

Also See

Distance

PlaneClosestPoint