hm_comparegettransformationmatrix
Returns the 4x4 transformation matrix for a specific transformation.
Syntax
hm_comparegettransformationmatrix transformation_index
Type
HyperMesh Tcl Query Command
Description
Returns the 4x4 transformation matrix (16 values) for a specific transformation. This must be preceded by a call to a relevant hm_compareentities* command.
Inputs
- transformation_index
- The index of the transformation to query, starting with 0. The number of transformations can be found using hm_comparegettransformationcount.
Example
To find the transformation matrix for transformation 0 for the recursive comparison of surfs 1-20 and 101-120:
*createmark surfs 1 1-20
*createmark surfs 2 101-120
hm_compareinit
hm_compareentitiesrecursive surfs 1 surfs 2 0.1 2 0
set matrix [hm_comparegettransformationmatrix 0]
hm_compareend
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
12.0