旋转一个平面。
rhinoscriptsyntax.RotatePlane (plane, angle_degees, axis)
rhinoscript.plane.RotatePlane (plane, angle_degees, axis)
plane |
必须参数。平面。 |
angle_degrees |
必须参数。数字。旋转度数(角度值)。 |
axis |
必须参数。三个数构成的列表、Point3d 点或 Vector3d 向量。一个作为旋转轴的非零 3-D 向量。 |
Plane |
执行成功返回平面。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
rotated = rs.RotatePlane(plane, 45.0, plane.XAxis)
rs.ViewCPlane( None, rotated )