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:
0 - Unmatched
1 - Topological
2 - Intersected
3 - Overlapped
4 - Matched
match_location
The location of the entities to query for the area. Valid values are:
1 - Source entities
2 - Target entities
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

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