*surfacemarksplitwithlines

Splits a mark of surfaces with lines swept along a vector.

Syntax

*surfacemarksplitwithlines surf_mark_id line_mark_id vector_id trim_flag distance

Type

HyperMesh Tcl Modify

Description

Changes the number of lines used to display an existing surface.

Inputs

surf_mark_id
The mark ID containing the surfaces to split. Valid values are 1 and 2.
line_mark_id
The mark ID containing the lines to use for splitting. Valid values are 1 and 2.
vector_id
The vector ID to use for the split direction. This is defined using the *createvector command.
trim_flag
0 - The lines are swept using the distance value.
1 - The lines are swept through the entire surface.
distance
The distance to sweep, if trim_flag is 0.

Example

To trim surfaces 15 and 16 with all displayed lines along the z direction, using a max distance of 0.5:

*createmark surfaces 1 15 16
*createmark lines 1 displayed
*createvector 1 0.0000 0.0000 1.0000
*surfacemarksplitwithlines 1 1 1 1 0.5

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}