hm_getelementnormal
Returns the normal vector of the specified element vertex/edge/face.
Syntax
hm_getelementnormal element_id query_type query_index
Type
HyperMesh Tcl Query Command
Description
Returns the normal vector of the specified element vertex/edge/face.
Inputs
- element_id
- The ID of the 2D/3D element to query.
- query_type
-
- vertex - query_index is the index of a vertex (node) of a 2D/3D element.
- edge - query_index is the index of an edge of a 2D element.
- face - query_index is the index of a face of a 3D element.
- query_index
- The index of the vertex (node), edge or face. The index is 1-based and is ordered the same as the nodes/edges/faces defining the element.
Examples
To get the normal of shell element 100 edge index 1:
hm_getelementnormal 100 edge 1
To get the normal of solid element 300 face index 2:
hm_getelementnormal 300 face 2
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
14.0