Alingned Node Coordinate Value (TCL Script)
Hi,
How can I determine the node coordinates aligned from two nodes without need to use a temporary node technique.
A function type:
Input1: two nodes N1 and N2 ( For Vector Definition)
Input2: Node N3 ( To be projected perpendicularly to N1 and N2 vector )
output: Aligned N3 (New Coordinate ==> X,Y and Z )
Thanks in Advance,
Felipe
Answers
-
-
Hi Tinh,
I really appreciated your code, but unfortunately HM could not found the ::math::linearalgebra package. It is possible be installed our use an similar hypermesh library?
Thanks,
Felipe
0 -
Hi Tinh,
I found a similar functions in hypermesh:
::hwat::math::VectorCrossProduct {vector1} {vector2}
::hwat::math::VectorNormalize {valuelist} normvalue
It solved now.
Thanks very much!
Felipe
0 -
Even if there is no available function, you can write them easily. Google for their formula.
0 -
-
I want to get the coordinates of a node and use it in defining the base point (while projecting). Can you please tell me how to do this?
0 -
Try
set coords [ join [hm_nodevalue $nid]]
0