Vectors and Planes
At times, it is necessary to define a vector or plane for a command. HyperMesh allocates two vectors and two planes with the IDs 1 and 2. The vectors and planes can be defined at any time during the processing of a command file or Tcl script.
The following example Tcl script translates node 10 along the x axis by
5 units:
*createvector 1 1.0 0.0 0.0
*createmark nodes 1 10
*translatemark nodes 1 1 5.0
In this case, vector 1 is loaded with the components (1.0,0.0,0.0) that define the global x-axis. Node mark 1 is populated with node 10. These are then passed to the *translatemark command to perform the action.
Additionally, a normal and base point are required to define a plane. The next example
Tcl script reflects all displayed elements about a plane that has a
normal along the x axis and a base point of
(5.0,0.0,0.0):
*createplane 1 1.0 0.0 0.0 5.0 0.0 0.0
*createmark elems 1 displayed
*reflectmark elems 1 1