spin#

view_transf.spin(p0: float, p1: float, p2: float, p3: float) int#

Applies a global rotation multiple times.

Interactively, the model will continue to spin until the user stops it. Once stopped, the command language contains the number of times the rotation was applied.
Args:
p0:

‘num’ number of times that the rotation is to be applied

p1:

‘x_ang’ number of degrees to rotate about the x, y, z axes. (sign is according to the right-hand rule)

p2:

‘y_ang’ number of degrees to rotate about the x, y, z axes. (sign is according to the right-hand rule)

p3:

‘z_ang’ number of degrees to rotate about the x, y, z axes. (sign is according to the right-hand rule)

Examples:
# 
# Selecting viewport(s) 
# 
ensight.viewport.select_begin(2)
# 
# Spin only works with global rotations 
# 
ensight.view_transf.function("global")
# 
# Apply the rotation specified 
# (In this case, 105 times)
# 
ensight.view_transf.spin(105,0.602679,-10.175333,0.000000)
Returns:

zero on success, non-zero on error