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)
- 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
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0