You can achieve this by writing making a filter that creates a 3D vector field
where each vector represents an RGB color. If writing out floating point
values, the color channel values should be between 0 and 1. You can then render
this 3D vector field directly as colors by turning off the “Map Scalars”
display parameter. “Map Scalars” is an advanced option, so the easiest way to
find it is to type “map” into the search bar at the top of the properties panel.
-Ken
From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Nico Schlömer
Sent: Thursday, December 14, 2017 7:15 AM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] plot colors: function value -> RGB tuple
Hi everyone,
I need to plot complex-valued functions over various domains, and instead of
splitting the values into real and imaginary part (or absolute value and
angle), I would like to use a "2D colormap" approach as sometimes suggested for
complex-valued functions (see, e.g., [1]).
As a lowkey approach of getting this into ParaView, I was wondering if it's
possible to create a filter that takes a point value (or two), runs it through
some specified (Python) code, and uses the returned RGB tuple for rendering the
plot.
Any hints?
Cheers,
Nico
[1] https://github.com/BIDS/colormap/issues/6#issuecomment-220839685
___
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
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview