*morphmaptoextendedvecoffset

Maps nodes to extended versions of the specified surfaces or elements.

Syntax

*morphmaptoextendedvecoffset entity_type_nodes mark_id_nodes entity_type_handles mark_id_handles entity_type_map mark_id_map use_symmetry use_constraints project vector_id mode offset

Type

HyperMesh Tcl Modify Command

Description

Maps nodes to, or offset from, a mark of extended surfaces or elements using the temporary shape created by *morphmaptshp and *morphmaptshpedge as a guide. Selected handles can optionally follow behind the morphing operation.

Nodes can be projected on to the target extended surfaces or elements along a vector, normal to the surfaces or elements, or normal to the shell elements attached to the nodes.

Inputs

entity_type_nodes
Must be set to nodes.
mark_id_nodes
The ID of the mark containing the nodes. Valid values are 1 and 2.
entity_type_handles
Must be set to handles.
mark_id_handles
The ID of the mark containing any following handles. Valid values are 1 and 2.
entity_type_map
The type of entity to map to. Valid values are surfs and elems.
mark_id_map
The ID of the mark containing the entities to map to. Valid values are 1 and 2.
use_symmetry
0 - Do not use symmetry links (only option)
use_constraints
0 - Do not use constraints
1 - Use constraints
project
0 or 10 - Project along vector defined by vector_id
1 or 11 - Project normal to target surfaces or elements
2 or 12 - Project normal to attached shell elements
If offset is non-zero, the offset will be measured from the closest point on the equation for values of 0, 1 and 2. The offset will be measured along the projection vector or normal for values of 10, 11, and 12.
vector_id
The ID of vector created using *createvector for the projection direction. Must be set to 1.
mode
0 - If *morphmaprecalc has been used to calculate new influences
1 - To recalculate new influences inside this command
offset
The distance to offset nodes from the target.
The offset will be measured from the closest point on the surfaces or elements for values of project of 0, 1, and 2. The offset will be measured along the projection vector normal for values of project of 10, 11, and 12.

Example

To map all nodes to extended elements 1-100 with an offset of 1.2 when not using *morphmaprecalc():

*createmark nodes 1 "all"
*createmark elems 1 1-100
*morphmaptoextendedvecoffset nodes 1 handles 1 elems 1 0 1 2 1 1 1.2

Errors

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