*surfacemarksplitwithline

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

Syntax

*surfacemarksplitwithline mark_id line_id vector_id trim_flag distance

Type

HyperMesh Tcl Modify

Description

This command splits a mark of surfaces with a line swept along a vector.

Inputs

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

Example

To split surfaces 10 and 20 by sweeping line 11 along the z-axis:
*createmark surfaces 1 10 20
*createvector 1 0.0000 0.0000 1.0000
*surfacemarksplitwithline 1 11 1 1 0

Errors

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