[vtkusers] merge Filters

Dominik Szczerba dominik at itis.ethz.ch
Wed Nov 12 04:05:40 EST 2008

In vtkDataArray family there is a method SetArray (or SetData, don't 
remember) that takes over the pointer to existing buffer. This is 
probably what you want here. Still there is an issue with the ordering 
(row- or column-wise) - you will have to conform to VTK's row-major style.


Benjamin Schindler wrote:
> Hi
> I've got the issue that vector data channels are provided as single 
> floats (1 channel each component). So I would like to write a filter 
> which merges the these three data channel into a vector data channel. 
> Now since I never should modify the input data in a filter, I'd have to 
> copy the entire data just for the merge which is a lot of memory in case 
> of large data files. Is there a way to circumvent this? (Like using the 
> same array for all other data channels I get for the input in the output?)
> Thanks
> Benjamin
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation for Research

More information about the vtkusers mailing list