hm_encodeshape
Generate an encoded string representing the shape of a geometry.
Syntax
hm_encodeshape entity_type mark_id ?<option1>=<value1>? ?<option2>=<value2>? ... ?<optionN>=<valueN>?
Type
HyperMesh Tcl Query Command
Description
Generate an encoded string representing the shape of a geometry.
Inputs
- entity_type
- The type of entity to generate the encoding for. Valid values are surfs and elems.
- mark_id
- The ID of the mark containing the input entities. Valid values are 1 and 2.
- encoding_algorithm=<value>
- The optional encoding algorithm to use. Valid values are:
- sphhar_bandwidth=<value>
- Optional, valid for encoding_algorithm 0, default 16.
- sphhar_falloff=<value>
- Optional, valid for encoding_algorithm 0, default 2.828427.
- sphhar_radii=<value>
- Optional, valid for encoding_algorithm 0, default 32.
- sphhar_resolution=<value>
- 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