hm_comparesetrefacetmode

Regenerates facets on source and target surfaces for comparison purposes.

Syntax

hm_comparesetrefacetmode mode ?max_size? ?max_angle?

Type

HyperMesh Tcl Query Command

Description

Regenerates facets on source and target surfaces for comparison purposes. This must precede any calls to hm_compareentities* commands. This is useful particularly when comparing highly curved geometries with fine meshes.

Inputs

mode
0 - off (use defaults)
1 - Use average element size and 5.0 max_angle
2 - Use user max_size and default max_angle
3 - Use default max_size and user max_angle
4 - Use user max_size and user max_angle
max_size (optional)
Specifies the maximum facet size to use. Used when mode is 2 or 4.
max_angle (optional)
Specifies the maximum angle between facet normals. This is useful for increasing the facet density on curved surfaces. Used when mode is 3 or 4.

Example

To generate refined facets using a facet size of 0.5 and a max angle of 5.0 for a same side comparison of surfs 1-20 and elems 101-120:

*createmark surfs 1 1-20
*createmark elems 2 101-120
hm_compareinit
hm_comparesetrefacetmode 4 0.5 5.0
hm_compareentitiessameside surfs 1 elems 2 0.1 2 0
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