*linecreatenormaltogeom

Create a straight segment from a point normal to a geometry.

Syntax

*linecreatenormaltogeom point_type point_mark_id geom_type geom_mark_id mode

Type

HyperMesh Tcl Modify Command

Description

This command creates straight segment lines from a given set of points or nodes normally to a given set of geometric entities. The segment is created for each pair of point and geometry.

Inputs

point_type
Type of entities representing input points. Valid values are nodes or points.
point_mark_id
The mark of input points or nodes.
geom_type
Type of geometry entities. Valid values are lines, surfs, faces or solids.
geom_mark_id
The mark of input geometry entities.
mode
Flags that indicate different modes. Bit values are used and the value is calculated as (Bit0 + 2*Bit1).
Bit0
Parameter that specifies the behavior in ambiguous cases. Valid values are:
  • 0 - For each pair of point and geometry, a single segment is created between the point and the closest geometry point. The segment must be normal to the geometry otherwise it is not created.
  • 1 - For each pair of point and geometry, a single segment is created between the point and the closest geometry point. The segment does not have to be normal to the geometry.
Bit1
Specifies how entities are organized into components. Valid values are:
  • 0 - Line is created in the current component, which is the default value.
  • 1 - Line is created in the original geometry component.

Example

To create a straight segment normally from node with ID 10 to surface with ID 21:

*createmark nodes 1 10
*createmark surfs 1 21
*linecreatenormaltogeom nodes 1 surfs 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
}

Version History

10.0