*line_trim_ends
Trims free lines at the specified locations.
Syntax
*line_trim_ends mark_id x1 y1 z1 x2 y2 z2 keep_original_lines
Type
HyperMesh Tcl Modify Command
Description
The command trims given lines on input mark at the specified points. If the trimming locations are not exactly lying on a specific line, then the points on line closest to the given ones are used instead.
Inputs
- mark_id
- The ID of the mark containing the lines to edit. Valid values are 1 and 2.
- x1 y1 z1
- Coordinates of the first trim point.
- x2 y2 z2
- Coordinates of the second trim point.
- keep_original_lines
- 0 - Do not keep
Examples
To trim lines with IDs 10,20,30 from points closest to (4.5, 6.7, 8.9) to (0.1, 0.2, 0.3):
*createmark lines 1 10 20 30
*line_trim_ends 1 4.5 6.7 8.9 0.1 0.2 0.3
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019