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