hm_diffencodings
Calculates the distance between two lists of encoded strings representing shapes of geometries.
Syntax
hm_diffencodings encodings1 encodings2 ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?
Type
HyperMesh Tcl Query Command
Description
Calculates the distance between two encoded lists representing shapes of geometries. The geometries can be CAD, FE or a mixture. Typically this is the Euclidean distance normalized by the number of entries in the encoding. The encodings are generated by hm_encodeshape.
Inputs
- encodings1
- The first list of encodings generated by hm_encodeshape.
- encodings2
- The second list of encodings generated by hm_encodeshape.
- encoding_algorithm
- The optional encoding algorithm to use. Valid values are:
- sphhar_bandwidth
- Optional, valid for encoding_algorithm 0, default 16.
- sphhar_fallof
- Optional, valid for encoding_algorithm 0, default 2.828427.
- sphhar_radii
- Optional, valid for encoding_algorithm 0, default 32.
- sphhar_resolution
- Optional, valid for encoding_algorithm 0, default 64.
Examples
To calculate and diff the encodings from all surfaces against all elements:
*createmark surfs 1 all
set x [hm_encodeshape surfs 1]
*createmark elems 1 all
set y [hm_encodeshape elems 1]
hm_diffencodings $x $y
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2020.1