cone_axis#

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

Sets the axis for the cone tool.

Use with view_transf: cone_angle and view_transf: cone_origin to specify the cone tool location and orientation.
The components are in reference to the selected frame.
Args:
p0:

‘x_comp’ x, y, z directional components for the cone tool axis

p1:

‘y_comp’ x, y, z directional components for the cone tool axis

p2:

‘z_comp’ x, y, z directional components for the cone tool axis

Examples:
# 
# Turns display of the quadric cone on 
# (only one quadric tool at a time can be on) 
# 
ensight.tools.quadric("cone")
# 
# Sets the axis and other attributes of the cone tool 
# 
ensight.view_transf.cone_angle(25.000000)
ensight.view_transf.cone_axis(1.000000,0.100000,0.000000)
ensight.view_transf.cone_origin(-0.750000,0.700000,1.000000)
# 
# Turns off the display of the quadric tool 
# 
ensight.tools.quadric("none")
Returns:

zero on success, non-zero on error