hm_comparegetarea
Calculates the area values for all source and target entities.
Syntax
hm_comparegetarea match_type match_location ?transformation_index?
Type
HyperMesh Tcl Query Command
Description
Calculates the area values for all source and target entities. This must be preceded by a call to a relevant hm_compareentities* command.
Inputs
- match_type
- The type of match to query for the area. Valid values are:
- match_location
- The location of the entities to query for the area. Valid values are:
- transformation_index
- The index of the transformation to query, starting with 0. The number of transformations can be found using hm_comparegettransformationcount.
Example
To get the area of both the source and target unmatched entities for a same side comparison of elems 1-20 and 101-120:
*createmark elems 1 1-20
*createmark elems 2 101-120
hm_compareinit
hm_compareentitiessameside surfs 1 surfs 2 0.1 2 0
set unmatched_source [hm_comparegetarea 0 1]
set unmatched_target [hm_comparegetarea 0 2]
hm_compareend
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0