<div dir="ltr">You could try the vtkProgrammableFilter [1] or the vtkArrayFilter [2]. Examples for both are available on their respective Doxygen pages (just search for Examples:).<div><br></div><div>Best regards,</div><div>Cory<br><div><div><br></div><div>[1] <a href="http://www.vtk.org/doc/release/6.2/html/classvtkProgrammableFilter.html">http://www.vtk.org/doc/release/6.2/html/classvtkProgrammableFilter.html</a><br></div><div>[2] <a href="http://www.vtk.org/doc/release/6.2/html/classvtkArrayCalculator.html">http://www.vtk.org/doc/release/6.2/html/classvtkArrayCalculator.html</a></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 10:06 AM, mightos <span dir="ltr"><<a href="mailto:mightos@gmail.com" target="_blank">mightos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm working with multiple arrays and I can't figure out how to combine them.<br>
<br>
*This is what I have :*<br>
<br>
/Array1, Type Double, 3 Components:/<br>
X11 | Y11 | Z11<br>
X12 | Y12 | Z12<br>
X13 | Y13 | Z13<br>
.<br>
.<br>
.<br>
<br>
/Array2, Type Double, 3 Components:/<br>
X21 | Y21 | Z21<br>
X22 | Y22 | Z22<br>
X23 | Y23 | Z23<br>
.<br>
.<br>
.<br>
<br>
*This is what I want in the end :*<br>
<br>
/Array3, Type Double, 3 Components:/<br>
X11*cos(a)+X21*sin(a) | Y11*cos(a)+Y21*sin(a) | Z11*cos(a)+Z21*sin(a)<br>
X12*cos(a)+X22*sin(a) | Y12*cos(a)+Y22*sin(a) | Z12*cos(a)+Z22*sin(a)<br>
X13*cos(a)+X23*sin(a) | Y13*cos(a)+Y23*sin(a) | Z13*cos(a)+Z23*sin(a)<br>
.<br>
.<br>
.<br>
<br>
<br>
Do you know how I can handle this ?<br>
<br>
Thank you in advance :)<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-combine-multiple-arrays-tp5732676.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-combine-multiple-arrays-tp5732676.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>