[Paraview] RGB color coding

David E DeMarle dave.demarle at kitware.com
Fri Aug 15 18:34:38 EDT 2014


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 <genet at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140815/410e32da/attachment.html>


More information about the ParaView mailing list