axis#

clip.axis(*args, **kwargs) Any#

Set the direction vector for quadric and revolution clips.

The origin together with the axis defines the location and orientation of the quadric and revolution tools.
The origin and axis define the point and axis about which a 1D part is revolved.
Args:
p0:

‘x_comp’ x, y, z components of the direction vector

p1:

‘y_comp’ x, y, z components of the direction vector

p2:

‘z_comp’ x, y, z components of the direction vector

Examples:
#
# Select the parent part
#
ensight.part.select_begin(1)
ensight.clip.begin()
ensight.clip.domain("intersect")
ensight.clip.tool("cylinder")
ensight.clip.origin(0,0,0)
#
# Set the cone axis to lie along the x axis
#
ensight.clip.axis(1,0,0)
ensight.clip.radius(.5)
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error