*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 Command

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
Bit value defining the trim options (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3):
Bit0
0 - Sweep using the distance value
1 - Sweep through the entire surface
Bit1
0 - Project using vector_id in both directions
1 - Project using vector_id only in vector direction
Bit2
0 - Project using vector_id if proided and non-zero length
1 - Project normal
Bit3
0 - Do not create fixed points at line ends
1 - Create fixed points at line ends
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
}