*intersectmark2

Creates nodes/lines by intersecting 1D/2D elements with a plane.

Syntax

*intersectmark2 entity_type mark_id plane_id combine_flag break_angle smooth_flag comp_mode

Type

HyperMesh Tcl Modify Command

Description

Creates nodes/lines by intersecting 1D/2D elements with a plane. For 1D elements, nodes are created at each intersection location. For 2D elements, a series of line segments are created at the specified plane that matches the profile of the selected elements that span that plane. These segments are then joined together according to the values selected for combine_flag, break_angle and smooth.

Inputs

entity_type
The type of entities to intersect. Valid values are elems and comps (only elems in comps are considered).
mark_id
The ID of the mark containing the entities to intersect. Valid values are 1 and 2.
plane_id
The ID of the plane to use for the cut. This is defined using the *createplane command.
combine_flag
0 - Do not combine generated lines.
1 - Combine generated lines.
break_angle
The break angle used when combining lines. Ignored if combine_flag is 0.
smooth_flag
0 - Do not smooth combined lines.
1 - Smooth combined lines. Ignored if combine_flag is 0.
comp_mode
Parameter specifying how lines are organized into components:
0 - Lines are created in the current component.
1 - All created intersection lines will be placed in the original element component(s), splitting the lines where necessary if the elements selected are connected and in different components.

Example

To create intersection lines for the xy-plane with a base node of 0,10,0 with the displayed elements, with lines organized to the element components:

*createmark elems 1 displayed
*createplane 1 0 0 1 0 10 0
*intersectmark2 elems 1 1 0 0 0 1

Errors

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

Version History

13.0