[vtkusers] How to combine multiple arrays ?

Cory Quammen cory.quammen at kitware.com
Thu Jul 2 10:12:58 EDT 2015


You could try the vtkProgrammableFilter [1] or the vtkArrayFilter [2].
Examples for both are available on their respective Doxygen pages (just
search for Examples:).

Best regards,
Cory

[1] http://www.vtk.org/doc/release/6.2/html/classvtkProgrammableFilter.html
[2] http://www.vtk.org/doc/release/6.2/html/classvtkArrayCalculator.html

On Thu, Jul 2, 2015 at 10:06 AM, mightos <mightos at gmail.com> wrote:

> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150702/31dafb02/attachment.html>


More information about the vtkusers mailing list