*surfmark_trim_by_surfmark
Trims surfaces along the intersection(s) with other surfaces.
Syntax
*surfmark_trim_by_surfmark mark_id1 mark_id2 mode
Type
HyperMesh Tcl Modify Command
Description
Trims surfaces along the intersection(s) with other surfaces.
Inputs
- mark_id1
- The ID of the mark containing the selection of surfaces to be trimmed. Valid values are 1 and 2.
- mark_id2
- The ID of the mark containing the selection of surfaces to use as the trim tool. Valid values are 1 and 2.
- mode
-
- 0 - Surfaces on mark_id1 are trimmed by the surfaces on mark_id2
- 1 - Surfaces on both marks trim each other
- 2 - Surfaces on mark_id1 are trimmed by virtually extending surfaces of mark_id2
Example
To trim all surfaces on mark 1 by those on mark 2:
*createmark surfs 1 1-100
*createmark surfs 2 101-200
*surfmark_trim_by_surfmark 1 2 0
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}