origin#

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

Set origin 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_coord’ x, y, z coordinates of origin

p1:

‘y_coord’ x, y, z coordinates of origin

p2:

‘z_coord’ x, y, z coordinates of origin

Examples:
#
# Select the parent part
#
ensight.part.select_begin(1)
ensight.clip.begin()
#
# Create a cylinder clip
# defined by the origin at {0. 0. 0}
# a direction vector of {1, 0, 0}
# and a radius of 0,5
#
ensight.clip.domain("intersect")
ensight.clip.tool("cylinder")
ensight.clip.origin(0,0,0)
ensight.clip.axis(1,0,0)
ensight.clip.radius(.5)
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error