box_axis#

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

Specify the direction vectors for a box clip.

The direction vectors are in reference to the parent part frame.
Args:
p0:

‘axis’

  • x

  • y

  • z

p1:

‘x_vector’ The x component of the direction vector

p2:

‘y_vector’ The y component of the direction vector

p3:

‘z_vector’ The z component of the direction vector

Examples:
#
# Select a parent part
#
ensight.part.select_begin(2)
ensight.clip.begin()
#
# Create a xyz box clip with the box aligned with the
# global axis system and with an origin -.75, -.75, -.25
# The box sides are of length 1., 1.5, 2.
#
ensight.clip.tool("xyz_box")
ensight.clip.box_origin(-7.500000e-01,-7.500000e-01,-2.500000e-01)
ensight.clip.box_axis("x",1.000000e+00,0.000000e+00,0.000000e+00)
ensight.clip.box_axis("y",0.000000e+00,1.000000e+00,0.000000e+00)
ensight.clip.box_axis("z",0.000000e+00,0.000000e+00,1.000000e+00)
ensight.clip.box_length(1.000000e+00,1.500000e+00,2.000000e+00)
ensight.clip.domain("intersect")
ensight.clip.end()
ensight.clip.create()
Returns:

zero on success, non-zero on error