hm_comparesetreviewcolor

Sets the graphical review color for comparison results.

Syntax

hm_comparesetreviewcolor match_type match_location color

Type

HyperMesh Tcl Query

Description

Sets the graphical review color for comparison results. This must be followed by a call to hm_comparesetreview to refresh the graphics.

Inputs

match_type
The type of match to set the color for. Valid values are:
0 - Unmatched
1 - Topological
2 - Intersected
3 - Overlapped
4 - Matched
match_location
The location of the entities to set the color for. Valid values are:
1 - Source entities
2 - Target entities
color
A color value from 1-64.

Example

To set the review colors for unmatched entities to black for both source and target 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:
hm_comparesetreviewcolor 0 1 1
hm_comparesetreviewcolor 0 2 1
hm_comparesetreview 1
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