revolution_origin#

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

Sets the origin point for the first end of the revolution tool.

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

‘x_coord’ x, y, z coordinates of 1st end of the revolution tool

p1:

‘y_coord’ x, y, z coordinates of 1st end of the revolution tool

p2:

‘z_coord’ x, y, z coordinates of 1st end of the revolution tool

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