*hm_trim_elements_with_two_point_box
Trims shell elements using a box defined by two diagonal points.
Syntax
*hm_trim_elements_with_two_point_box mark_id x1 y1 z1 x2 y2 z2 spc_collector_name box_collector_name remesh_params
Type
HyperMesh Tcl Modify
Description
Trims shell elements using a box defined by two diagonal points. Shell elements inside the box are kept with the elements along any cuts re-meshed. Solid elements with all nodes inside the box are kept, while all others are deleted.
Inputs
- mark_id
- The ID of the mark containing the elements to cut. Valid values are 1 and 2.
- x1 y1 z1
- The coordinates of the first corner point.
- x2 y2 z2
- The coordinates of the second corner point.
- spc_collector_name
- The name of the collector in which the SPCs will be created for constraining cut elements.
- box_collector_name
- The name of the collector in which a hexa might be created to show the cutbox.
- remesh_params
- The parameters of re-meshing along the cut, defined as "keyword value" format.
Example
To trim displayed elements using a box with corner points (0,0,0) and (100,100,100):
*createmark elements 1 "displayed"
*hm_trim_elements_with_two_point_box 1 0.0 0.0 0.0 100.0 100.0 100.0 "abc" "efg" "min_elem_size_rate 0.6 comp_remainder_elem_rate 0.01 angle 30.0"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0.110