Planes in Python
This guide provides an overview of a RhinoScriptSytntax Plane Geometry in Python.
Several RhinoscriptSyntax methods either require as an argument or return as a result a plane. Planes are represented as zero-based, one-dimensional list containing four elements: the plane’s origin (3-D point), the plane’s X axis direction (3-D vector), the plane’s Y axis direction (3-D vector), and the plane’s Z axis direction (3-D vector).
Planes can be constructed in a number of ways. For example,
plane1 = [ ] # create an empty list. plane1.append([0.0, 0.0, 0.0]) # origin point plane1.append([1.0, 0.0, 0.0]) # x-axis vector plane1.append([0.0, 1.0, 0.0]) # y-axis vector plane1.append([0.0, 0.0, 1.0]) # z-axis vector
RhinoScriptSyntax contains a number of methods to manipulate planes. See Lines and Planes for details.