hm_comparegettransformationcount

Returns the number of transformations found.

Syntax

hm_comparegettransformationcount

Type

HyperMesh Tcl Query

Description

Returns the number of transformations found. This must be preceded by a call to a relevant hm_compareentities* command.

Multiple transformations can be found by hm_compareentitiesrecursive, hm_compareentitiesrotate and hm_compareentitiestranslate. Other hm_compareentities* commands only find a single transformation between source and target entities.

Example

To find the number of transformations 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 num_transformations [hm_comparegettransformationcount]
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