*morphreflectshapemark
Reflects shapes in accordance with symmetries and applies them only to the nodes on the mark.
Syntax
*morphreflectshapemark s_entity_type s_mark_id sym_entity_type sym_mark_id a_entity_type a_mark_id mode tol con
Type
HyperMesh Tcl Modify
Description
This command will reflect each shape on s_mark_id and reflect them according to each symmetry on sym_mark_id and affect only the nodes on a_mark_id. The shapes may be applied to the mesh, created as new shapes, added to existing shapes, or may replace existing shapes.
Inputs
- s_entity_type
- Must be set to shapes.
- s_mark_id
- The mark ID of the shapes. Valid values are 1 and 2.
- sym_entity_type
- Must be set to symmetries.
- sym_mark_id
- The mark ID for symmetries. Valid values are 1 and 2.
- a_entity_type
- Must be set to nodes.
- a_mark_id
- The mark ID for target nodes. Valid values are 1 and 2.
- mode
- 0 – Apply each shape to the mesh
- tol
- The "envelope" or distance around the translated shape inside which nodes are affected.
- con
- 0 – Do not use constraints
Examples
To reflect a shape using a symmetry and apply it to the mesh:
*createmark shapes 1 1
*createmark symmetrys 1 1
*createmark nodes 2 "all"
*morphreflectshapemark shapes 1 symmetrys 1 nodes 2 0 3.0 1
To reflect all shapes using all symmetries and create new shapes, but only on selected nodes:
*createmark shapes 1 "all"
*createmark symmetrys 1 "all"
*createmark nodes 2 1 2 3 4 5 6 7 8 9 10 11 12
*morphreflectshapemark shapes 1 symmetrys 1 nodes 2 4 3.0 1
Errors
if { [ catch {*morphreflectshapemark shapes 1 symmetrys 1 nodes 2 0 3.0 1} ] } {
# Handle error
}
if { [ catch {*morphreflectshapemark shapes 1 symmetrys 1 nodes 2 0 3.0 1} ] } {
# Handle error
}
"Symmetries must be reflective type (1, 2, 3-plane, or cyclical)." - occurs if none of the symmetries on the mark are of a reflective type. Non-reflective symmetries are allowed on the mark but will be ignored.
Version History
10.0