[Paraview] Cell-centered data with vtkTecplotReader

2010-07-15 Thread Adriano Gagliardi
Dear All, I've got a Tecplot file containing cell-centered data, which is working fine with Tecplot. However, ParaView doesn't recognise the file header: tecplot file header begin TITLE = FLOWFIELD VARIABLES = X Y Z RHO U V W CP P ZONE T=BLOCK 1, I=35, J=39, K=105, ZONETYPE=Ordered,

[Paraview] How to do volume rendering of image data?

2010-07-15 Thread Steve Huntley
According to the Paraview FAQ, Paraview supports volume rendering of image data. But despite searching the Web and buying the Paraview book, I have not been able to find any detailed descriptions of this feature, let alone directions for or examples of how to do it. I have several image

Re: [Paraview] How to do volume rendering of image data?

2010-07-15 Thread Guillaume.Duclaux
Hi Steve, I don't know if what you describe can be achieved in Paraview, but actually you can do it easily with VolView [1] (another - bt not open-source - Kitware software). Volume rendering is a standard technique for visualising X-Ray Computed Tomography data. If you find out out to do this

[Paraview] new representations

2010-07-15 Thread Paul Edwards
Hi, I've added a representation to display feature edges but I can't get it to work for all datasets (it is missing for image and unstructured data). It seems that when another representation is added specifically for a type of data set (e.g. volume for unstructured, or slice and volume for

Re: [Paraview] new representations

2010-07-15 Thread Utkarsh Ayachit
What do you mean by added specifically for a type. How are you doing that? Utkarsh On Thu, Jul 15, 2010 at 6:31 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: Hi, I've added a representation to display feature edges but I can't get it to work for all datasets (it is missing for image and

Re: [Paraview] new representations

2010-07-15 Thread Paul Edwards
By added specifically for a type I was referring to how ParaView adds a volume representation for unstructured dataset (and volume and slice for an image dataset). I would like my representation to be available for all datasets. Regards, Paul On 15 July 2010 13:54, Utkarsh Ayachit

[Paraview] python and *.vtk

2010-07-15 Thread llapis Pencil
Hi once again, I still haven't achieve to open the *.vtk file with a python script. I tried mainly two different ways: 1. Has you said, with the OpenDataFile command. But I get the error below, as it could not read *.vtk file. #Python script from paraview.simple import * reader =

Re: [Paraview] new representations

2010-07-15 Thread Paul Edwards
The difference is due to vtkSMRenderViewProxy::CreateDefaultRepresentation returning either an UnstructuredGridRepresentation for unstructured data, UniformGridRepresentation for image data and GeometryRepresentation for other datasets. The representations from the plugins only appear with the

Re: [Paraview] new representations

2010-07-15 Thread Utkarsh Ayachit
So you must have an Extension element for GeometryRepresentation in your plugin. You need to add Extension elements for UniformGridRepresentation and UnstructuredGridRepresentation as well. Utkarsh On Thu, Jul 15, 2010 at 10:32 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: The difference

Re: [Paraview] python and *.vtk

2010-07-15 Thread Utkarsh Ayachit
There's a bug in 3.8.0 in OpenDataFile() which will be fixed in 3.8.1 (already fixed in release branch). Use the attached script as a sample. It has a newer fixed version of OpenDataFile(). The second sample you used was incorrect since you are mixing VTK-python scripting with ParaView's python

Re: [Paraview] new representations

2010-07-15 Thread Paul Edwards
I've just copied the Extension tag for each and it seems to work - is there a better way than to Copy Paste for each? Thanks, Paul On 15 July 2010 15:33, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: So you must have an Extension element for GeometryRepresentation in your plugin. You

Re: [Paraview] new representations

2010-07-15 Thread Utkarsh Ayachit
Not currently. However you can try to keep the copy-pasted code minimal by using a separate definition for your representation as done in the example on wiki. http://www.paraview.org/Wiki/Plugin_HowTo#Adding_new_Representations_for_3D_View_using_Plugins__.2A_new_in_version_3.7 Utkarsh On Thu,

Re: [Paraview] new representations

2010-07-15 Thread Paul Edwards
Thanks again :) On 15 July 2010 15:48, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Not currently. However you can try to keep the copy-pasted code minimal by using a separate definition for your representation as done in the example on wiki.

Re: [Paraview] problem with new representation plugin

2010-07-15 Thread Paul Edwards
Hi, After correcting the problem with my representation for different datatypes I was reminded of this problem - I never did get a solution. I tried again today and by exposing the ambient color property as diffuse color I still get a warning message but I also noticed that it also stops the

Re: [Paraview] How to do volume rendering of image data?

2010-07-15 Thread Moreland, Kenneth
Steve, Your approach is correct. I don't know why you are seeing what you describe. How are you coloring your data? -Ken On 7/15/10 4:37 AM, Steve Huntley step...@xhuntley.net wrote: According to the Paraview FAQ, Paraview supports volume rendering of image data. But despite searching the

Re: [Paraview] Cell-centered data with vtkTecplotReader

2010-07-15 Thread Berk Geveci
Hi Adriano, I wouldn't be surprised if the Tecplot reader has limitations, including the ability to read cell-centered data. I'd suggest taking a look at the source code to find out. If it is the case, it shouldn't be too hard to add this functionality. Are you interested in giving it a shot?