box_origin#
- clip.box_origin(*args, **kwargs) Any #
Specify the origin of the box clip in reference to the parent part frame
The origin is in reference to the parent part frame.- Args:
- p0:
‘x_ori’ The x-origin of the box clip
- p1:
‘y_ori’ The y-origin of the box clip
- p2:
‘z_ori’ The z-origin of the box clip
- 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