sphere_origin#

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

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

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

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

p1:

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

p2:

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

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 origin 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