hm_comparegetdistanceentitytype
Returns the entity type for a specific distance index.
Syntax
hm_comparegetdistanceentitytype distance_index
Type
HyperMesh Tcl Query Command
Description
Returns the entity type for a specific distance index. This must be preceded by a call to a relevant hm_compareentities* command and hm_comparefinddistances.
Possible return values are:
2 - Elems
5 - Surfs
Inputs
- distance_index
- The index of the distance to query, starting with 0. The number of distances can be found using hm_comparegetdistancecount.
Example
To find the entity type for distance index 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
hm_comparefinddistances 1.0 1
set entity_type [hm_comparegetdistanceentitytype 0]
hm_compareend
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0