[Paraview] 2D contours on a slice for a 3D data

Moreland, Kenneth kmorel at sandia.gov
Mon Jan 7 12:58:14 EST 2013


I'd like to expand upon on Sebastian's correct but short answer.

The contour filter is not going to give you the contours that you are asking for.  The contour filter is going to extract the geometry representing exactly the locations of the contours and nothing else.  As such, if you contour a slice through your data (or somewhat equivalently take a slice through your contour), you will get a bunch of lines representing where in the plane the field equals the isovalue you gave. So rather than getting a plane of colors as in your second example, you get the lines at the interface between colors.

The representation of contours you are asking for is a bit different.  You want the entire geometry of the plane drawn and colored in such a way that the contours are represented as sharp transitions in the colors.  Since you are never actually extracting the geometry of the contours themselves, running the contour filter is not appropriate for this.  Instead, as Sebastian said, you want to make a slice through the data and provide a coloring that represents the contours.  To set up these colors, first make sure the slice is colored by the scaler value you want contours of.  Then click the edit color map button to pull up the color scale editor.  Click on the "Use Discrete Colors" option (you will need to turn on the "advanced" properties if you are using the most recent version of ParaView) and then set the resolution to be set to the number of color bands you want.

-Ken

From: Sebastien Jourdain <sebastien.jourdain at kitware.com<mailto:sebastien.jourdain at kitware.com>>
Date: Monday, January 7, 2013 6:53 AM
To: Pradeep Jha <pradeep.kumar.jha at gmail.com<mailto:pradeep.kumar.jha at gmail.com>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] 2D contours on a slice for a 3D data

It seems that you just want to slice your data and eventually reduce the number of color in your lookup table so you see distinct color bands.

Seb


On Sun, Jan 6, 2013 at 10:16 PM, Pradeep Jha <pradeep.kumar.jha at gmail.com<mailto:pradeep.kumar.jha at gmail.com>> wrote:
Hello,

I have a 3D data (the geometry is a simple cube). I am interested in looking at the 2D contour plots of a variable on a sliced plane.  Below I have attached two figures. The first figure shows the slice. It only shows the cross-section of the iso-surfaces of the variable I loaded in 3D. I am interested in getting a contour plot, like the 2nd figure (I got this image randomly from the net), of the variable values on the slice.

I hope I made myself clear :) Any ideas how I can do it?
Thank you,
Pradeep

[cid:F1CE9B4D-3091-46DC-8BA8-EA4225571D4D]

[cid:5504E990-C080-48CA-A79B-7CAB8C591720]

_______________________________________________
Powered by www.kitware.com<http://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://www.paraview.org/mailman/listinfo/paraview


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130107/3efb1106/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour.jpg
Type: image/jpg
Size: 33629 bytes
Desc: contour.jpg
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130107/3efb1106/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Slice.png
Type: image/png
Size: 56631 bytes
Desc: Slice.png
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130107/3efb1106/attachment-0001.png>


More information about the ParaView mailing list