*morphhandleprojectentity
Morphs a mesh by projecting selected handles on to the selected surfaces or elements.
Syntax
*morphhandleprojectentity h_entity_type h_mark_id e_entity_type e_mark_id p_entity_type p_mark_id nproj proj sym con
Type
HyperMesh Tcl Modify
Description
This command will move each of the selected handles onto the selected surfaces or elements along a direction defined by the projection type. Applying symmetry links and constraints is optional. All domains influenced by the selected handles will be morphed accordingly.
If nproj is set to 2, the elements on the mark will be used to determine the projection direction for the handles. If no elements are on the mark then all shell elements will be used to determine the projection directions.
Handles linked through symmetry to those selected will be moved in a way that mirrors the selected handles which may or may not move them to other lines in the model.
Constraints may move the perturbed handles off of the selected line after the handles are moved to the line.
Inputs
- h_entity_type
- Must be set to handles.
- h_mark_id
- The mark ID containing the handles. Valid values are 1 and 2.
- e_entity_type
- Must be set to surfs or elems.
- e_mark_id
- The mark ID containing the target surfaces or elements. Valid values are 1 and 2.
- p_entity_type
- Must be set to elems.
- p_mark_id
- The mark ID of the normal elements. Valid values are 1 and 2.
- nproj
- 0 – Project along vector proj
- proj
- Temporary projection vector ID
- sym
- 0 – Ignore symmetry links
- con
- 0 – Ignore constraints
Examples
To project handles to a surface along a vector:
*createmark handles 1 "all"
*createmark surfs 1 12
*createmark elems 2
*createvector 1 1.0 0.0 0.0
*morphhandleprojectentity handles 1 surfs 1 elems 2 0 1 1 1
To project handles to a mesh normal to the mesh:
*createmark handles 1 "all"
*createmark elems 1 1 2 3 4 5 6
*createmark elems 2
*createvector 1 1.0 0.0 0.0
*morphhandleprojectentity handles 1 elems 1 elems 2 1 1 1 1
To project handles to a surface normal to the selected elements:
*createmark handles 1 "all"
*createmark surfs 1 12
*createmark elems 2 7 8 9 10 11 12
*createvector 1 1.0 0.0 0.0
*morphhandleprojectentity handles 1 surfs 1 elems 2 2 1 1 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
"Unable to create tacit surface from elements." - occurs if the selected target elements cannot be assembled into a useable tacit surface. Selected elements should be shells, connected to each other, and of relatively good quality.
Version History
10.0