revolution_point#

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

Defines the location of the given point in relation to the revolution axis.

Args:
p0:

‘pt_number’ revolution tool point number for which the coordinates are being given

p1:

‘x_coord’ x coordinate of the point on the revolution tool. Namely, the distance parallel to the revolution axis from the origin of the tool

p2:

‘y_coord’ y coordinate of the point on the revolution tool. Namely, the distance perpendicular to the revolution axis from the origin of the 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