revolution_axis#

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

Sets the axis for the revolution tool.

Coordinates are in reference to the selected coordinate frame.
Args:
p0:

‘x_comp’ x, y, z directional components of the revolution tool axis

p1:

‘y_comp’ x, y, z directional components of the revolution tool axis

p2:

‘z_comp’ x, y, z directional components of the revolution tool axis

Examples:
# 
# Turns display of the quadric surface of revolution on 
# (only one quadric tool at a time can be on) 
# 
ensight.tools.quadric("revolution")
# 
# Sets the axis and other attributes of the revolution tool 
# 
ensight.view_transf.revolution_origin(0.500000,0.700000,1.000000)
ensight.view_transf.revolution_axis(0.995040,0.099504,0.000000)
ensight.view_transf.revolution_number_of_points(7)
ensight.view_transf.revolution_point(1,-1.250000,0.500000)
ensight.view_transf.revolution_point(2,-0.625000,0.500000)
ensight.view_transf.revolution_point(3,0.000000,1.000000)
ensight.view_transf.revolution_point(4,0.301802,0.720000)
ensight.view_transf.revolution_point(5,0.319820,0.710000)
ensight.view_transf.revolution_point(6,0.625000,0.500000)
ensight.view_transf.revolution_point(7,1.250000,0.500000)
# 
# Turns off the display of the revolution tool 
# 
ensight.tools.quadric("none")
Returns:

zero on success, non-zero on error