旋转一个视图。获取更多信息请参考 Rhino 帮助文件中有关 RotateView 指令的部分。
rhinoscriptsyntax.RotateView (view=None, direction=0, angle=None)
rhinoscript.view.RotateView (view=None, direction=0, angle=None)
view |
可选参数。字符串或 Guid。视图的名称或 ID 。如果省略,将使用当前视图。 |
direction |
可选参数。数字,视图旋转方向 0 = 右, 1 = 左, 2 = 下, and 3 = 上。默认值为 0 = 右。 |
angle |
可选参数。数字。旋转角度。如果省略,旋转角度由 Options 指令中视图面板下的“圆周分段数”指定。 |
布尔值 |
True 或 False 表示计算完成或失败。 |
import rhinoscriptsyntax as rs
rs.RotateView( angle=90.0 )