Hello,
I wrote a script where i can display the difference (dx, dy, dz) between two points:
DECOMPOSE a[0] = start
DECOMPOSE b[0] = stop
c[0] = a[0]-b[0]
c[1] = a[1]-b[1]
c[2] = a[2]-b[2]
TYPE "dx=",c[0]
TYPE "dy=",c[1]
TYPE "dz=",c[2]
Where start and stop are in transformation values.
start 0.000000 1301.793701 512.026733 -90.000008 179.998871 89.999199
stop 0.000000 1621.730225 312.077698 90.000008 179.998779 -90.000801
How can i write the same script for more points?
pct1 * ---------------------* pct2
| |
| |
| |
pct4 *----------------------* pct3
For example i want to calcultate the difference between pct1 and pct2; pct2 and pct3; pct3 and pct4; pct4 and pct1
JMOVE pct1
CALL calcdif
JMOVE pct2
CALL calcdif
JMOVE pct3
CALL calcdif
JMOVE pct4
CALL caldif