plane#

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

Set a corner for a clip plane.

Three corners are necessary to properly define the plane location.
Args:
p0:

‘corner’

  • 1, 2 or 3, to set specified plane corner

p1:

‘x_coord’ x, y, z coordinates of corner

p2:

‘y_coord’ x, y, z coordinates of corner

p3:

‘z_coord’ x, y, z coordinates of corner

Examples:
#
# Select the parent part
#
ensight.part.select_begin(2)
ensight.clip.begin()
#
# Create a finite clip plane
# with corners as defined
#
ensight.clip.tool("plane")
ensight.clip.extents("finite")
ensight.clip.plane(1,-1,-1,0)
ensight.clip.plane(2,1,-1,0)
ensight.clip.plane(3,1,1,0)
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error