hm_getsurfacenormal

Gets the normals of the surfaces connected to the node or point whose ID is given as the argument.

Syntax

hm_getsurfacenormal entityType entityID

Type

HyperMesh Tcl Query

Description

Gets the normals of the surfaces connected to the node or point whose ID is given as the argument.

Inputs

entityType
The type of entity. Only nodes or points are supported.
entityID
ID of the entity.

Examples

The result is returned as a list: { nsurfs x1 y1 z1 surf_id1 x2 y2 z2 surf_id2 … }

Where nsurfs is the number of surfaces attached to the point, xn yn zn are direction cosines of the normal of the surface having ID surf_idn. If no surfaces are attached, the list consists of the single number 0.

Suppose that node with ID 100 is located on a shared edge between surfaces having IDs 10 an 11. To retrieve the normals at attached surfaces:

set node_norms [ hm_getsurfacenormal nodes 100 ]
   2 1.697E-001 7.988E-001 5.771E-001 10 1.699E-001 7.969E-001 5.796E-001 11

To get x cosine of the normal to surface 10 at this node:

lindex $node_norms 0
   1.697E-001

This function queries all surfaces connected to a given node to obtain the normal on each surface at a given node or point location.

Errors

None.