*surfaceintersectmark

Creates lines by intersecting surfaces with a plane or other surfaces.

Syntax

*surfaceintersectmark mark_id1 plane_flag plane_id mark_id2

Type

HyperMesh Tcl Modify

Description

Creates lines by intersecting surfaces with a plane or other surfaces. The line segments are organized into the current component.

Inputs

mark_id
The mark ID containing the surfaces to intersect. Valid values are 1 and 2.
plane_flag
0 - Use mark_id2 to define the surfaces to use for the intersection.
1 - Use plane_id to define the plane to use for the intersection.
plane_id
The ID of the plane to use for the intersection, if plane_flag is 1. This is defined using the *createplane command.
mark_id2
The ID of the mark containing the surfaces to use for the intersection, if plane_flag is 0. Valid values are 1 and 2.

Examples

To create intersection lines for the xy-plane with a base node of 0, 10, 0 with the displayed surfaces:
*createmark surfaces 1 displayed
*createplane 1 0 0 1 0 10 0
*surfaceintersectmark 1 0 1 
To create intersection lines for the intersection of surfaces 1 and 2 with surfaces 10 and 11:
*createmark surfaces 1 1 2
*createmark surfaces 2 10 11
*surfaceintersectmark 1 1 1 2

Errors

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