sphere_axis#
- view_transf.sphere_axis(p0: float, p1: float, p2: float) int #
Sets the axis components for the sphere tool.
Coordinates are in reference to the selected coordinate frame.- Args:
- p0:
‘x_comp’ x, y, z components of the sphere tool axis
- p1:
‘y_comp’ x, y, z components of the sphere tool axis
- p2:
‘z_comp’ x, y, z components of the sphere tool axis
- Examples:
# # Turns display of the quadric sphere tool on # (only one quadric tool at a time can be on) # ensight.tools.quadric("sphere") # # Sets the axis and other attributes of the sphere tool # ensight.view_transf.sphere_radius(1.500000) ensight.view_transf.sphere_axis(1.000000,0.100000,0.000000) ensight.view_transf.sphere_origin(0.500000,0.700000,1.000000) # # Turns off the display of the sphere tool # ensight.tools.quadric("none")
- Returns:
zero on success, non-zero on error