[Paraview] Color wireframe by color gradient

Moreland, Kenneth kmorel at sandia.gov
Tue May 19 11:23:49 EDT 2015


Wireframes in ParaView are colored the same way as most of the other representations (like surface, points, or volume). In all cases in order to color by something other than a solid color, you need a field defined over the mesh.

It sounds you want to color based on the physical location. You can create a field like that easily with the Calculator filter. Just make the expression of the Calculator "coords" (which is a special vector representing the point coordinates). Here is a screen shot of creating a coloring similar to your example of the disk_out_ref dataset using just the ParaView GUI.

[cid:52987C8A-5D8E-44D7-826C-F840B8833C71]

-Ken

From: Michael Nolde <mnolde at gmx.net<mailto:mnolde at gmx.net>>
Date: Tuesday, May 19, 2015 at 9:07 AM
To: Paraview Mailing List <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] [Paraview] Color wireframe by color gradient

Dear all,

I wondered if it is possible to color a wireframe with a a color gradient (or random colors)
instead of a solid color. I have a 3D mesh exported from GMSH, with a lot of interior points/edges.
I use a shrink filter in Paraview to thow the interior edges, but since the are all colored homogenously
it is impossible to distinguish any features.
Here's a Screenshot:
http://flatpolar.org/paraview_mesh3_maxsize5.png

I would like to have the mesh shown at least a little bit more like in GMSH:
http://flatpolar.org/gmsh_mesh3_maxsize5.png

In best case, the coloring of the edges would be depending on the X-,Y-,and Z-location.
I found this screenshot featuring different edge colors, but the model is created from
Python and visualized in an OpenGL window instead of Paraview.
http://www.paraview.org/Wiki/images/thumb/d/d7/ContourFilterPython3.png/600px-ContourFilterPython3.png
The idea seems to be to set the 'ColorAttributeType' to 'POINT_DATA', but this doesn't help me much.

Could anyone hint me to a solution of how to achieve a multi-colored wireframe in Paraview?

Thanks in advance,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150519/3f10988e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ParaView001.png
Type: image/png
Size: 223090 bytes
Desc: ParaView001.png
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150519/3f10988e/attachment-0001.png>


More information about the ParaView mailing list