PlaneFromFrame

Construct a plane from a point, and two vectors in the plane.

Syntax

rhinoscriptsyntax.PlaneFromFrame (origin, x_axis, y_axis)

rhinoscript.plane.PlaneFromFrame (origin, x_axis, y_axis)

Parameters

origin

Required.  List of 3 numbers or Point3d.  A 3-D point identifying the origin of the plane.

x_axis

Required.  List of 3 numbers, Point3d, or Vector3d.  A non-zero 3-D vector in the plane that determines the X axis direction.

y_axis

Required.  List of 3 numbers, Point3d, or Vector3d.  A non-zero 3-D vector not parallel to x_axis that is used to determine the Y axis direction. Note, y_axis does not have to be perpendicular to x_axis.

Returns

Plane

The plane if successful

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

origin = rs.GetPoint("CPlane origin")

if origin:

    xaxis = (1,0,0)

    yaxis = (0,0,1)

    plane = rs.PlaneFromFrame( origin, xaxis, yaxis )

    rs.ViewCPlane(None, plane)

Also See

MovePlane

PlaneFromNormal

PlaneFromPoints

RotatePlane