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

Pradeep Jha pradeep.kumar.jha at gmail.com
Mon Jan 7 20:06:48 EST 2013


Hello,

thanks everyone. It seems like it is working.

Pradeep

Le 8 janv. 2013 à 02:58, "Moreland, Kenneth" <kmorel at sandia.gov> a écrit :

> 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>
> Date: Monday, January 7, 2013 6:53 AM
> To: Pradeep Jha <pradeep.kumar.jha at gmail.com>
> Cc: "paraview at paraview.org" <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> 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
>>> 
>>> <Slice.png>
>>> 
>>> <contour.jpg>
>>> 
>>> _______________________________________________
>>> 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://www.paraview.org/mailman/listinfo/paraview
>>> 
>> 
> <contour.jpg><Slice.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130108/a28a7b02/attachment.htm>


More information about the ParaView mailing list