cylinder_origin#

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

Sets the origin point for one end of the cylinder tool.

Use with view_transf: cylinder_axis and view_transf: cylinder_radius to fully define the cylinder tool.
The components are in reference to the selected frame.
Args:
p0:

‘x_coord’ x, y, z coordinates of the cylinder tool origin

p1:

‘y_coord’ x, y, z coordinates of the cylinder tool origin

p2:

‘z_coord’ x, y, z coordinates of the cylinder tool origin

Examples:
# 
# Turns display of the quadric cylinder on 
# (only one quadric tool at a time can be on) 
# 
ensight.tools.quadric("cylinder")
# 
# Sets the origin and other attributes of the cylinder tool 
# 
ensight.view_transf.cylinder_axis(1.000000,0.100000,0.000000)
ensight.view_transf.cylinder_origin(-0.750000,0.700000,1.000000)
ensight.view_transf.cylinder_radius(1.500000)
# 
# Turns off the display of the quadric tool 
# 
ensight.tools.quadric("none")
Returns:

zero on success, non-zero on error