domain#

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

Specify what type of clip will be created.

Intersect applies to all tools except XYZ Box.
Inside/outside/in_out apply to all tools except XYZ, IJK, and Line.
When domain is set to inside/outside/in_out the parent parts will be made invisible.
The default is intersect.
Args:
p0:

‘domain’

  • intersect

  • inside

  • outside

  • in_out

  • crinkly

Examples:
#
# Select the part
#
ensight.part.select_begin(2)
ensight.clip.begin()
#
# Create a new part inside the
# cylinder tool
#
ensight.clip.domain("inside")
ensight.clip.tool("cylinder")
ensight.clip.origin(-1.,0,1.)
ensight.clip.axis(1,0,0)
ensight.clip.radius(.75)
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error