I'ld use the python programmable filter. In the filter: copy the input across make a new three component wide unsigned char array and give it a name iterate over all the points (or cells) get the vector for the point (or cell) scale and bias each component down to 0..255 and store in the new array add the new array to the output point (or cell) array container
see: http://www.paraview.org/Wiki/Python_Programmable_Filter for starter examples David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Aug 15, 2014 at 11:22 AM, Martin Genet <ge...@biomed.ee.ethz.ch> wrote: > Dear ParaView people, > > I have a vector field V defined on some mesh, and I am trying to > color-code it following the scheme: > - R = |V.x| > - G = |V.y| > - B = |V.z| > Does that make sense? Is there a way to do so? Thanks! > > Martin > > _______________________________________________ > 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 ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview >
_______________________________________________ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview