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

Moreland, Kenneth kmorel at sandia.gov
Tue Jan 8 11:42:31 EST 2013


In the Properties panel for the glyph filter, there should be an entry title "Vectors".  Select the vector field you want to glyph by (in your case, velocity).  If velocity is not listed there, it means your data does not have a velocity point field.

-Ken

From: Pradeep Jha <pradeep.kumar.jha at gmail.com<mailto:pradeep.kumar.jha at gmail.com>>
Date: Tuesday, January 8, 2013 9:25 AM
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Cc: Sebastien Jourdain <sebastien.jourdain at kitware.com<mailto:sebastien.jourdain at kitware.com>>, "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

Hello,

applying Glyph to the output of the slice filter just gives me arrows depending on the scalar field on the slice (figure attached). This is not what I want. I want arrows representing the magnitude and director of the vector at each point on the slice of a velocity vector which exits in the 3D cube.

Thanks for the reply.

[cid:3927B622-B2CB-4943-BA9B-5D95134FC99E]


Le 9 janv. 2013 à 00:08, "Moreland, Kenneth" <kmorel at sandia.gov<mailto:kmorel at sandia.gov>> a écrit :

Try applying the glyph filter to the output of the slice filter.

-Ken

From: Pradeep Jha <pradeep.kumar.jha at gmail.com<mailto:pradeep.kumar.jha at gmail.com>>
Date: Tuesday, January 8, 2013 1:03 AM
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Cc: Sebastien Jourdain <sebastien.jourdain at kitware.com<mailto:sebastien.jourdain at kitware.com>>, "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

Hello,

I have a follow up question on similar lines.

In the 3D cube that I have, I have a velocity vector data. Is it possible that I can show the vector field coming out of the sliced plane? i.e. at each point of the sliced plane, an arrow coming out of the sliced plane representing the magnitude and direction of the velocity vector at the particular point on the plane. Something like the attached image.

I hope I made myself clear.
Thanks in advance,
Pradeep


<vector.png>


Le 8 janv. 2013 à 10:06, Pradeep Jha <pradeep.kumar.jha at gmail.com<mailto:pradeep.kumar.jha at gmail.com>> a écrit :

Hello,

thanks everyone. It seems like it is working.

Pradeep

Le 8 janv. 2013 à 02:58, "Moreland, Kenneth" <kmorel at sandia.gov<mailto: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<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

<Slice.png>

<contour.jpg>

_______________________________________________
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


<contour.jpg><Slice.png>


<vector.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130108/0598f492/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glyph.png
Type: image/png
Size: 76696 bytes
Desc: glyph.png
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130108/0598f492/attachment-0001.png>


More information about the ParaView mailing list