hm_getorientation
Returns a 4x4 matrix corresponding to the moment directions of the input.
Syntax
hm_getorientation entity_type mark_id ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?
Type
HyperMesh Tcl Query Command
Description
Returns a 4x4 matrix (16 values) corresponding to the moment directions of the input.
Inputs
- entity_type
- The type of entity to query. Valid values are elems, solids, surfs, nodes, comps and parts.
- mark_id
- The ID of the mark of entities. Valid values are 1 and 2.
- comparetype=<value>
- The type of comparison when entity_type is comps or parts:
Examples
Find the difference between the orientation of two selections of surfaces:
*createmark surfs 1 23-44
set x [hm_getorientation surfs 1]
*createmark surfs 1 56-60
set y [hm_getorientation surfs 1]
hm_getmatrixdifference $x $y
Find the difference between the orientation of two components:
*createmark comps 1 44 45
set x [hm_getorientation comps 1 comparetype=1]
hm_getmatrixdifference [list [lindex $x 0]] [list [lindex $x 1]]
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2021