[vtkusers] How to combine multiple arrays ?

mightos mightos at gmail.com
Thu Jul 2 10:06:45 EDT 2015


Hello,

I'm working with multiple arrays and I can't figure out how to combine them.

*This is what I have :*

/Array1, Type Double, 3 Components:/
X11 | Y11 | Z11
X12 | Y12 | Z12
X13 | Y13 | Z13
.
.
. 

/Array2, Type Double, 3 Components:/
X21 | Y21 | Z21
X22 | Y22 | Z22
X23 | Y23 | Z23
.
.
. 

*This is what I want in the end :*

/Array3, Type Double, 3 Components:/
X11*cos(a)+X21*sin(a) | Y11*cos(a)+Y21*sin(a) | Z11*cos(a)+Z21*sin(a)
X12*cos(a)+X22*sin(a) | Y12*cos(a)+Y22*sin(a) | Z12*cos(a)+Z22*sin(a)
X13*cos(a)+X23*sin(a) | Y13*cos(a)+Y23*sin(a) | Z13*cos(a)+Z23*sin(a)
.
.
. 


Do you know how I can handle this  ?

Thank you in advance :)



--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-combine-multiple-arrays-tp5732676.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list