*surfacemark_find_organize_symmetry
Identify symmetry between surfaces in a given set, with respect to a given reflection plane.
Syntax
*surfacemark_find_organize_symmetry surf_set_mark_id1 surf_set_mark_id2 plane options tolerance
Type
HyperMesh Tcl Modify
Description
This command compares surfaces from two different sets, checking whether any surface in one set has an identical counterpart in another set after reflection with respect to the input plane. Optionally, only one set of surfaces can be provided on input, in which case this single set is automatically split into two sets based on the surfaces’ position with respect to the input plane. As a result of symmetry calculations, surfaces are either deleted or reorganized into newly created components, depending on the chosen options parameter (see comments).
Inputs
- surf_set_mark_id1
- The mark containing the surfaces in the first set.
- surf_set_mark_id2
- The mark containing the surfaces in the second set, or zero for no additional surfaces.
- plane
- The symmetry plane around which surfaces will be reflected & compared.
- options
- An integer value representing a combination of flags used to modify command behavior (see comments).
- tolerance
- Tolerance value used to calculate surfaces identity.
- Parameter options description
- As a result of surface sets symmetry calculation, input surfaces are separated into
four sets:
- output_set0 – unmatched (no symmetric counterpart was found) surfaces of input set surf_set_mark_id1.
- output_set1 – matched (symmetric counterpart was found) surfaces of surf_set_mark_id1.
- output_set2 – unmatched (no symmetric counterpart was found) surfaces of input set surf_set_mark_id2.
- output_set3 – matched (symmetric counterpart was found) surfaces of surf_set_mark_id2.
Example
- Organizing symmetric surfaces – add bits 1 and 3 (action group “move to component” for output_set1 and output_set3).
- Deleting unmatched surfaces – add bits 4 and 6 (action group “delete” for output_set0 and output_set2).
- Highlighting symmetric surfaces – add bits 9 and 11 (action group “highlight” for output_set1 and output_set3).
Combining all bits gives the value for options parameter:
options = 2^1 + 2^3 + 2^4 + 2^6 + 2^9 + 2^11 = 2650
So we call the command as:
*surfacemark_find_organize_symmetry 1 2 2650 0.1
Errors
This command does not return any errors that can be handled.