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
The optional encoding algorithm to use. Valid values are:
0 - sphhar technique (default)
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

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2020.1

2021.1