cylinder_radius#

view_transf.cylinder_radius(p0: float) int#

Set the radius value for the cylinder tool.

Use with view_transf: cylinder_origin and view_transf: cylinder_axis to fully define the cylinder tool.
Args:
p0:

‘rad’ cylinder radius value (in model coordinates)

Examples:
# 
# Turns the display of the quadric cylinder on 
# (only one quadric tool at a time can be on) 
# 
ensight.tools.quadric("cylinder")
# 
# Sets the radius 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