Creates a plane from three non-colinear points.
rhinoscriptsyntax.PlaneFromPoints(origin, x, y)
rhinoscript.plane.PlaneFromPoints(origin, x, y)
origin |
Required. list of 3 numbers or Point3d. The first point, or origin, of the plane. |
x |
Required. list of 3 numbers or Point3d. A point on the plane's X axis. |
y |
Required. list of 3 numbers or Point3d. A point on the plane's Y axis. |
Plane |
The plane if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
corners = rs.GetRectangle()
if corners:
rs.ViewCPlane( rs.PlaneFromPoints(corners[0], corners[1], corners[3]))