*nodecreateatintersection

Create nodes or points at locations of intersection between the input geometric entities.

Syntax

*nodecreateatintersection entity_type1 mark_id1 entity_type2 mark_id2 point_flag

Type

HyperMesh Tcl Modify

Description

This command creates nodes or points at locations of intersection between two sets of input geometries. Only intersections between entities from different sets are calculated and are used to create nodes or points.

If there is overlap (continuous intersection) between the entities, the result is undefined. For example, finding the intersection of a surface edge to a parent surface is undefined and can return unexpected or varied results.

Inputs

entity_type1
Type of input entities of the first set. Valid values are lines.
mark_id1
The ID of the mark of the first entity type. Valid values are 1 and 2.
entity_type2
Type of input entities of the second set. Valid values are lines, surfs, faces or solids.
mark_id2
The ID of the mark of the second entity type. Valid values are 1 and 2.
point_flag
Parameter specifying whether nodes or points are created. Valid values are:
0 – Create nodes
1 – Create points

Examples

To create nodes at the intersections between line 12 and surface 20:

*createmark lines 1 12
*createmark surfs 1 20
*nodecreateatintersection lines 1 surfs 1 0

To create points at intersection between lines 12 and 14:

*createmark lines 1 12
*createmark lines 2 14
*nodecreateatintersection lines 1 lines 2 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

10.0