box_length#
- clip.box_length(*args, **kwargs) Any #
Specify the size of the box clip in the x, y, and z directions
The lengths are in relation to the box axis directions.- Args:
- p0:
‘x_len’ The length of box clip in the x direction
- p1:
‘y_len’ The length of box clip in the y direction
- p2:
‘z_len’ The length of box clip in the z direction
- 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