hm_comparefinddistances

Calculates the distance between all source and target entities.

Syntax

hm_comparefinddistances max_distance review_results

Type

HyperMesh Tcl Query

Description

Calculates the distance between all source and target entities. This must be preceded by a call to a relevant hm_compareentities* command. Only the distances for the target entities are calculated. The results can be contoured or queried.

Inputs

max_distance
The maximum distance to use in the calculation. A smaller value results in faster computation time.
review_results
0 - Do not automatically show the graphical comparison results after execution.
1 - Automatically show the graphical comparison results after execution (default). This is cleared upon a call to hm_compareend.

Example

To generate a contour of the distance results 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
hm_comparefinddistances 1.0 1
hm_comparesetreview 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