Re: [Paraview] Use case Paraview-Selection

2010-04-22 Thread Christian Werner
Yep, I know the Find Data and it's quite nice to have. I mean something 
still more simple. In my use case i wrote:


...The object will highlight so the user can always see which objects
have already been selected...


which could be realized with some kind of RegionID selector. So one 
click and -BAM- all points with same ID selected.


Best regards,
Christian


Utkarsh Ayachit wrote:

Glad it works.

What do you mean by a pick selects all cells with same ID ? Is ID a
cell array? If so, you can already do so using the  Edit | Find Data
dialog
 [ http://www.paraview.org/Wiki/Find_Data_using_Queries ]

Utkarsh


On Wed, Apr 21, 2010 at 5:10 PM, Christian Werner
christian.wer...@rwth-aachen.de wrote:
  

This works perfectly, thank you very much! The processing is getting really
professional now.

As for the selection tools, should I just go ahead and write a feature
request? (a pick selects all cells with same ID / enable multiselect so you
do not have to use the Ctrl-Key anymore)

Best regards,
Christian



Utkarsh Ayachit wrote:


Christian,

Attached is simple python script (that you can encapsulate as a macro)
to which you can add code to processes the extract points however you
like. I am simply writing them out to a file.

To use this script, do the following (to keep it simple I am using the
Sphere source as an example, no reason why it won't work with your
data).
1 Create Sphere source
2 Create a selection of points or cells
3 Open Python Shell and run the attached script.

As as result, you'll have a mygrid.vtu file written out with the
extracted points(or cells). No 3 seconds waits, no errors writing
files, no need for the user to create extract selection filter.

Using the python macros capability, you can make this script a
trigger-able from a toolbutton.

Utkarsh

On Wed, Apr 21, 2010 at 8:55 AM, Christian Werner
christian.wer...@rwth-aachen.de wrote:

  

Hi!

I made a new topic about that selection thing. Here is my use-case:

Overview: We have volumetric data of metal components. These components
contain unwanted defects (holes that appear during the casting process).
These holes are visible as dark regions (objects) in the data.
Unfortunately, there are other structures in the metal that are also dark
(graphite). After a few image processing steps many of those objects
(defects and graphite) are segmented out of the originial volume data. A
contouring (and connectivity filtering) yields a nice visualization of
those
objects.

Use Case: Select defects
Goal: The user selects the defects out of the many presented objects.

Details: Due to the extremely cool features of Paraview, the user is able
to
mix the views of all extracted objects and the original volume data (see
image) to easily verify which object is a defect and which one is
graphite.
When the user identifies an object as a defect, he marks it by a simple
click. The object will highlight so the user can always see which objects
have already been selected. When the user is done selecting all defects,
he
clicks on the Measure Defects button. A database containing all
necessary
information on the defects (centroid, total volume, volume
percentage,...)
will automatically be created and saved in a secret place.

Remark:
The Measure Defects Button will call a Python macro that desperately
tries
to extract the selected objects (points). These points are needed for
correspondance to the original volume data that is actually being
analyzed
(the mean grey value of a defect and such are important quantities).
Certainly, one single point per object suffices for this correspondance.


Best regards,
Christian


Utkarsh Ayachit schrieb:



Christian,

O-oh! We can't have our users going mad now can we :). Guess we are
looking at this the wrong way, instead of working from the solution,
let's start with the problem/use-case. Can you describe your use-case
as simply as possibly. What's the goal here? What is the user doing?

Utkarsh

On Mon, Apr 19, 2010 at 11:20 AM, Christian Werner
christian.wer...@rwth-aachen.de wrote:


  

Does that mean that I have to create a selection with explicitly
defining
the points? Oh man... Then I can forget the whole thing anyway.

Everything is so nice about Paraview, but this selection thing is
driving
me
mad.

It's still all about making it as easy as possible for the user to
select
objects out of Polydata and let a plugin analyze these objects. As it
seems
now, the user has to:

1) Ctrl+Click matching objects one after another (already dangerours,
because you might forget to hold down Ctrl when selecting)
2) go to Filter-Recent-ExtractSelection
3) wait at least 3 seconds
4) call a plugin that writes the extracted points' coordinates and
their
ID
to a file
5) call the analyzing plugin that reads out the file (to get the
RegionID
and coordinates) and does the analysing stuff (in ITK)

I have found a way to do that wait 3 seconds in Python using a
thread(!)
which checks the time and joins 

[Paraview] Rescale to data range with a xmdf file, bug???

2010-04-22 Thread Felipe Bordeu Weldt

Hi,

I'm writing xdmf file to export my data (from matlab). I have a  
transient multi domain solution. A simple example (2 time-steps X 2- 
domains) file is attached. Note: the topology and the geometry are  
written only once).


The Rescale to data range button (GUI interface), rescale always to  
the first time-step. even if I'm looking to the second timestep.


The Object Inspector, (Data Arrays) shows the right Data Ranges.

using ParaView 3.8.0-RC1

thanks

Felipe


ASCII.xdmf
Description: Binary data


___
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


[Paraview] Missing Help files on 3.8.0 RC1 Windows

2010-04-22 Thread Richard GRENON

Hello,

I found that some help file are missing in the OnLine help of PV 3.8.0 
RC1 Windows distribution

- ParaViewSources.html
- ParaViewFilters.html
- ParaViewReaders.html
- ParaViewWriters.html
All these help files are in the Linux distribution. Could you fix that 
for the final 3.8.0 release?


Best regards.

Richard

--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

___
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


Re: [Paraview] Missing Help files on 3.8.0 RC1 Windows

2010-04-22 Thread Dave Partyka
Yes this is know and will be fixed in the next RC.

On Thu, Apr 22, 2010 at 8:18 AM, Richard GRENON richard.gre...@onera.frwrote:

 Hello,

 I found that some help file are missing in the OnLine help of PV 3.8.0 RC1
 Windows distribution
 - ParaViewSources.html
 - ParaViewFilters.html
 - ParaViewReaders.html
 - ParaViewWriters.html
 All these help files are in the Linux distribution. Could you fix that for
 the final 3.8.0 release?

 Best regards.

 Richard

 --
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:richard.gre...@onera.fr
 http://www.onera.fr

 ___
 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

___
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


Re: [Paraview] Error in Python shell

2010-04-22 Thread Bernhard Gschaider

 On Wed, 21 Apr 2010 16:54:14 +0400
 s == soukhinov  soukhi...@gmail.com wrote:

s  Python 2.6.4 (r264:75706, Dec 7 2009, 18:59:58)

s [GCC 4.4.1] on linux2

 from paraview import servermanager

s Traceback (most recent call last):

s File string, line 1, in module

s File
s /usr/lib/python2.6/dist-packages/paraview/servermanager.py,
s line 43, in module

s import re, os, new, exceptions, sys, vtk

s File /usr/lib/python2.6/dist-packages/paraview/vtk.py, line
s 4, in module

 from libvtkCommonPython import *

s ImportError: No module named libvtkCommonPython

You've got to add the directory where this (and other so-files)
resides to the PYTHONPATH before calling paraview. Something like

export PYTHONPATH=system specific path/bin:$PYTHONPATH

With the system specific path I can'T help you 

Bernhard

___
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


Re: [Paraview] Use case Paraview-Selection

2010-04-22 Thread Utkarsh Ayachit
The problem with implementing such a component in ParaView is the fact
that there's no universal notion of RegionID. However  it's may not
be difficult to add a tool button plugin that uses the some code
similar to FindData to create RegionID based selections for your
application.

Utkarsh

On Thu, Apr 22, 2010 at 3:19 AM, Christian Werner
christian.wer...@rwth-aachen.de wrote:
 Yep, I know the Find Data and it's quite nice to have. I mean something
 still more simple. In my use case i wrote:

 ...The object will highlight so the user can always see which objects
 have already been selected...


 which could be realized with some kind of RegionID selector. So one click
 and -BAM- all points with same ID selected.

 Best regards,
 Christian


 Utkarsh Ayachit wrote:

 Glad it works.

 What do you mean by a pick selects all cells with same ID ? Is ID a
 cell array? If so, you can already do so using the  Edit | Find Data
 dialog
  [ http://www.paraview.org/Wiki/Find_Data_using_Queries ]

 Utkarsh


 On Wed, Apr 21, 2010 at 5:10 PM, Christian Werner
 christian.wer...@rwth-aachen.de wrote:


 This works perfectly, thank you very much! The processing is getting
 really
 professional now.

 As for the selection tools, should I just go ahead and write a feature
 request? (a pick selects all cells with same ID / enable multiselect so
 you
 do not have to use the Ctrl-Key anymore)

 Best regards,
 Christian



 Utkarsh Ayachit wrote:


 Christian,

 Attached is simple python script (that you can encapsulate as a macro)
 to which you can add code to processes the extract points however you
 like. I am simply writing them out to a file.

 To use this script, do the following (to keep it simple I am using the
 Sphere source as an example, no reason why it won't work with your
 data).
 1 Create Sphere source
 2 Create a selection of points or cells
 3 Open Python Shell and run the attached script.

 As as result, you'll have a mygrid.vtu file written out with the
 extracted points(or cells). No 3 seconds waits, no errors writing
 files, no need for the user to create extract selection filter.

 Using the python macros capability, you can make this script a
 trigger-able from a toolbutton.

 Utkarsh

 On Wed, Apr 21, 2010 at 8:55 AM, Christian Werner
 christian.wer...@rwth-aachen.de wrote:



 Hi!

 I made a new topic about that selection thing. Here is my use-case:

 Overview: We have volumetric data of metal components. These components
 contain unwanted defects (holes that appear during the casting
 process).
 These holes are visible as dark regions (objects) in the data.
 Unfortunately, there are other structures in the metal that are also
 dark
 (graphite). After a few image processing steps many of those objects
 (defects and graphite) are segmented out of the originial volume data.
 A
 contouring (and connectivity filtering) yields a nice visualization of
 those
 objects.

 Use Case: Select defects
 Goal: The user selects the defects out of the many presented objects.

 Details: Due to the extremely cool features of Paraview, the user is
 able
 to
 mix the views of all extracted objects and the original volume data
 (see
 image) to easily verify which object is a defect and which one is
 graphite.
 When the user identifies an object as a defect, he marks it by a simple
 click. The object will highlight so the user can always see which
 objects
 have already been selected. When the user is done selecting all
 defects,
 he
 clicks on the Measure Defects button. A database containing all
 necessary
 information on the defects (centroid, total volume, volume
 percentage,...)
 will automatically be created and saved in a secret place.

 Remark:
 The Measure Defects Button will call a Python macro that desperately
 tries
 to extract the selected objects (points). These points are needed for
 correspondance to the original volume data that is actually being
 analyzed
 (the mean grey value of a defect and such are important quantities).
 Certainly, one single point per object suffices for this
 correspondance.


 Best regards,
 Christian


 Utkarsh Ayachit schrieb:



 Christian,

 O-oh! We can't have our users going mad now can we :). Guess we are
 looking at this the wrong way, instead of working from the solution,
 let's start with the problem/use-case. Can you describe your use-case
 as simply as possibly. What's the goal here? What is the user doing?

 Utkarsh

 On Mon, Apr 19, 2010 at 11:20 AM, Christian Werner
 christian.wer...@rwth-aachen.de wrote:




 Does that mean that I have to create a selection with explicitly
 defining
 the points? Oh man... Then I can forget the whole thing anyway.

 Everything is so nice about Paraview, but this selection thing is
 driving
 me
 mad.

 It's still all about making it as easy as possible for the user to
 select
 objects out of Polydata and let a plugin analyze these objects. As it
 seems
 now, the user has to:

 1) Ctrl+Click matching objects one after another (already 

Re: [Paraview] [ParaView]A bug in volume rendering

2010-04-22 Thread Utkarsh Ayachit
Sorry, my bad ( I can never remember which setting applies where). Go
to Edit |Settings. Then, on the Server page in the Tile Display
Parameters group, set Compositing Threshold to 0 (and ensure that
it's enabled). This is the setting that controls tile-display
compositing.

Utkarsh

On Thu, Apr 22, 2010 at 1:45 AM, liuning tant...@gmail.com wrote:
 Hi Ayachit ,
 Sorry for the deferred reply. When the Remote Render Threshold is set to 0,
 the wavelet source is still not composited correctly.
 -Ning

 On Fri, Apr 16, 2010 at 2:49 AM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:

 Ning,

 Go to the Edit |Settings dialog. On the Server page make sure that
 the Remote Render Threshold is 0 (and enabled). Volume rendering is
 only supported when parallel rendering is enabled.

 Utkarsh

 On Thu, Apr 15, 2010 at 2:34 PM, Moreland, Kenneth kmo...@sandia.gov
 wrote:
  I created a bug report for this:
 
  http://www.paraview.org/Bug/view.php?id=10557
 
  -Ken
 
 
  On 4/15/10 1:07 AM, liuning tant...@gmail.com wrote:
 
  Hi all,
 
  When we are doing a parallel volume rendering(using the Wavelet source
  from
  ParaView) and show the result on a tiled display, it seems that the
  final
  image is not composited correctly. We use the Fix Point mapper  in the
  first
  attachment and GPU mapper  in the second attachment. We also render
  another
  dataset(box.ex2 from ParaView Data), but the result is correct. The
  correctly composited image is showed in the third attachment. I notice
  that
  the Wavelet source support GPU mapper whereas the box.ex2 does not. Does
  it
  have something to do with that?
 
  -ning
 
 
 
       Kenneth Moreland
  ***  Sandia National Laboratories
  ***
  *** *** ***  email: kmo...@sandia.gov
  **  ***  **  phone: (505) 844-8919
  ***  web:   http://www.cs.unm.edu/~kmorel
 
 
  ___
  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
 
 


___
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


[Paraview] Programmable Source MultiBlockDataSet

2010-04-22 Thread Aurélien Marsan
Hi,

A new thing I don't know how to do with Paraview.
I have written a personnal reader, that creates vtkStructuredGrid from files
written in so called format v3d. So I'm able to construct a
MutliBlockDataSet, that is composed of all the Blocks I'm working with.

I would like to use Programmable Source, so we don't need to write the
file on the disk before to open it with Paraview.
Does Programmable Source work with MultiBlockDataSet ? I don't see this
class in the Output Data Set Type that we can choose...

And is it correct if I write in the Script of the Programmable Filter :

from perso import *
multiblock = MultiBlockDataSetFromV3D(.)
self.GetOutput().DeepCopy(multiblock)

Thanks for help.

A.MARSAN
___
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


[Paraview] 3.8 RC1 regression in line chart ?

2010-04-22 Thread Richard GRENON

Hello, here is me again.

I have found some kind of regression with the line charts (XY plots) in 
PV 3.8 RC1:
First, loading a very simple csv file with three columns (named P, R and 
T), then using filter PlotData:


1. the XY windows comes with the top VARIABLE box unchecked and all my 
variables (P, V, T) boxes checked in the Line Series panel of the 
Display tab, but the XY window remains empty until I check the top 
VARIABLE box. The default X axis is the Row ID. OK.


2. Now I want to use one of my three data arrays as the X axis: I select 
the radio-button and the first variable P is selected by default on the 
list-box. OK, this is the variable I want on the X axis, but I get many 
error messages because No X column is set (index 0). I have to select 
another X axis variable, then to come again on the P variable. No more 
error, but the X axis remains scaled with the Row ID values! I have to 
uncheck a variable in the line series panel and to check it again to 
obtain the correct P values on the X axis. Finally I get my three curves 
and I can change the X axis variable as I want.


3. All variables are scaled by default with the bottom-left axis system 
and I want to scale one of the variables on the right axis. I select one 
variable in the Line series panel and I try to change the default 
bottom-left Chart Axes for bottom-right or top-right axis system. 
Nothing happens: the top and right axis don't appear and all variables 
remain scaled on the bottom-left axis system. I can change some 
attributes of the variable (Line thickness, Line Style, Marker), but not 
the Chart Axes, although it was possible to change the Chart Axes with 
PV 3.6.2.


I attach the very small csv file that I used for my tests.

Regards.

Richard

--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

P,R,T
0,1,2
2,3,4
4,2,6
6,5,5
8,4,3
10,3,1
___
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


Re: [Paraview] please help do constuct 3d surface chart from csv file

2010-04-22 Thread Chris Botha
Eric

Please know that I really appreciate the time you took to answer my
query. I have done what you have suggested - and it brought me closer
to what I want. Unfortunately it still does not do exactly what I
want. I am at the point of accepting that Paraview is not what I need
because:
1) When I transform the data so that the scales of the surface chart
appears in proportion the actual data is transformed - I want to
adjust the scales of the axis only - not the data because when I
select the data I then have to divide the result again by the scale
factor to know whet the actual values are.
2) It seem the Delaunay 2d filter seems to decrease the resolution of
my data by drawing triangles only between major points. The ideal for
me would be to not have any data manipulation at all - Paraview seems
to be too powerful.
3) Learning how to do things is not easy - I would prefer a chat board
/ bulletin board over an email list - to see if other people has tried
the same as what I am trying. There is nothing new under the sun.

Regards

Chris


On Wed, Apr 21, 2010 at 3:06 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hey Chris,

 Yes, you are on the right track with that mailing list entry. If you want to 
 actually transform the values of the points, just go to Filters-Transform 
 and then enter a factor between 0 and 1 in the appropriate Scale box (e.g. 
 0.2 in the third Scale column will multiply the Z values by 0.2). If you want 
 to keep the original data values, but just scale the display, then go to the 
 Display tab in the Object Inspector and all the way down at the bottom is a 
 Transformation section where you can do the same sort of Scale entry.

 ParaView doesn't support hovering labels right now, but you can tell it to 
 label selected points. Use one of the point selection tools to select some 
 points on your grid. Then, go to View-Selection Inspector. At the bottom of 
 that panel there is a Display Style section. If you hit the Point Label tab 
 and check the Visible box you'll see PointID and other attributes in the 
 Label Mode combo-box. If your point coordinates are not there, then you can 
 apply the Calculator filter to your data: Attribute Mode: Point Data, Result 
 Array Name: Coordinates (or something like that), Equation (next box down): 
 coords (which you can get by pulling down on the Vectors button on the lower 
 right. After you hit apply the coordinates of your points will be an explicit 
 vector attribute of your point data, and this new vector should show up in 
 the Label Mode combo box for Point Label.

 Talk to you later,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 On Apr 21, 2010, at 5:27 AM, Chris Botha wrote:

 Utkarsh

 I am a new user to Paraview - and therefore do not know what to do
 when you say to apply the transform filter. I therefore searched the
 web for more information on how to apply the transform filter in
 Paraview. The best I could find was here :
 http://www.paraview.org/pipermail/paraview/2009-March/011560.html  - I
 was able to use that answer to apply the scale that I need.

 I have also applied the Delaunay filter - and now have a 3d surface
 chart that I wanted!

 What do I need to do to see the coordinates of the cursor as I move it
 over the surface chart? I need to see the values of the local maximum.

 Regards

 Chris


 On Mon, Apr 19, 2010 at 4:32 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
 If the issue is indeed scale, then you can apply the Transform filter
 to scale the points.

 Utkarsh

 On Sun, Apr 18, 2010 at 2:37 PM, Chris Botha solidsto...@gmail.com wrote:
 Utkarsh/Berk

 Thank you both for taking the time to reply to my question.

 I have done what you have suggested - and made some progress. I still
 however do not see what I expect.

 After making sure that the table to points is selected I do see a 3D
 view of something - the points are stretched along the Z axis - very
 close to the axis - and not spread out as I would expect. When I apply
 Delauny 2d it of course draws lines between the stretched out points
 along the Z axis.

 I have attached the following for you to see what I mean:
 paraviewdots.png - screen shot of dots along the Z axis
 surface3d.png - what I would like to see - made with another program
 off the same data.

 I have also attached the file that contains the data that I am trying
 to see as a 3D surface chart - the file is four.csv. In the
 paraviewdots file I have selected :
 x = posdista
 y = negdista
 z = fitness

 I assume that the problem has to do with scale somehow - and have
 tried to find the correct settings to change - but have been unable to
 and would therefore greatly appreciate your help

 Regards



 On Sat, Apr 17, 2010 at 7:08 PM, Berk Geveci berk.gev...@kitware.com 
 wrote:
 After that, you'll probably need delaunay 2d.

 -berk

 On Sat, Apr 17, 2010 at 3:56 AM, Utkarsh Ayachit
 

Re: [Paraview] please help do constuct 3d surface chart from csv file

2010-04-22 Thread Eric E. Monson
Hey Chris,

1.) That is the point of the transformation which is in the Display tab -- it 
doesn't actually transform the data, only the display (the Transform Filter 
actually changes the data). So, with that Display transform the visual 
representation looks different but the data values are still the original.

2.) That seems strange. I thought it should use all points, but I'm definitely 
not an expert on Delaunay2D. How does it seem to determine major points?

3.) Sorry it's not working out for you. ParaView is definitely not always the 
most intuitive tool for beginners, but feel free to pass things by us in the 
future if you want to try again.

Good luck,
-Eric


On Apr 22, 2010, at 11:20 AM, Chris Botha wrote:

 Eric
 
 Please know that I really appreciate the time you took to answer my
 query. I have done what you have suggested - and it brought me closer
 to what I want. Unfortunately it still does not do exactly what I
 want. I am at the point of accepting that Paraview is not what I need
 because:
 1) When I transform the data so that the scales of the surface chart
 appears in proportion the actual data is transformed - I want to
 adjust the scales of the axis only - not the data because when I
 select the data I then have to divide the result again by the scale
 factor to know whet the actual values are.
 2) It seem the Delaunay 2d filter seems to decrease the resolution of
 my data by drawing triangles only between major points. The ideal for
 me would be to not have any data manipulation at all - Paraview seems
 to be too powerful.
 3) Learning how to do things is not easy - I would prefer a chat board
 / bulletin board over an email list - to see if other people has tried
 the same as what I am trying. There is nothing new under the sun.
 
 Regards
 
 Chris
 
 
 On Wed, Apr 21, 2010 at 3:06 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hey Chris,
 
 Yes, you are on the right track with that mailing list entry. If you want to 
 actually transform the values of the points, just go to Filters-Transform 
 and then enter a factor between 0 and 1 in the appropriate Scale box (e.g. 
 0.2 in the third Scale column will multiply the Z values by 0.2). If you 
 want to keep the original data values, but just scale the display, then go 
 to the Display tab in the Object Inspector and all the way down at the 
 bottom is a Transformation section where you can do the same sort of Scale 
 entry.
 
 ParaView doesn't support hovering labels right now, but you can tell it to 
 label selected points. Use one of the point selection tools to select some 
 points on your grid. Then, go to View-Selection Inspector. At the bottom of 
 that panel there is a Display Style section. If you hit the Point Label tab 
 and check the Visible box you'll see PointID and other attributes in the 
 Label Mode combo-box. If your point coordinates are not there, then you can 
 apply the Calculator filter to your data: Attribute Mode: Point Data, Result 
 Array Name: Coordinates (or something like that), Equation (next box down): 
 coords (which you can get by pulling down on the Vectors button on the lower 
 right. After you hit apply the coordinates of your points will be an 
 explicit vector attribute of your point data, and this new vector should 
 show up in the Label Mode combo box for Point Label.
 
 Talk to you later,
 -Eric
 
 --
 Eric E Monson
 Duke Visualization Technology Group
 
 
 On Apr 21, 2010, at 5:27 AM, Chris Botha wrote:
 
 Utkarsh
 
 I am a new user to Paraview - and therefore do not know what to do
 when you say to apply the transform filter. I therefore searched the
 web for more information on how to apply the transform filter in
 Paraview. The best I could find was here :
 http://www.paraview.org/pipermail/paraview/2009-March/011560.html  - I
 was able to use that answer to apply the scale that I need.
 
 I have also applied the Delaunay filter - and now have a 3d surface
 chart that I wanted!
 
 What do I need to do to see the coordinates of the cursor as I move it
 over the surface chart? I need to see the values of the local maximum.
 
 Regards
 
 Chris
 
 
 On Mon, Apr 19, 2010 at 4:32 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
 If the issue is indeed scale, then you can apply the Transform filter
 to scale the points.
 
 Utkarsh
 
 On Sun, Apr 18, 2010 at 2:37 PM, Chris Botha solidsto...@gmail.com wrote:
 Utkarsh/Berk
 
 Thank you both for taking the time to reply to my question.
 
 I have done what you have suggested - and made some progress. I still
 however do not see what I expect.
 
 After making sure that the table to points is selected I do see a 3D
 view of something - the points are stretched along the Z axis - very
 close to the axis - and not spread out as I would expect. When I apply
 Delauny 2d it of course draws lines between the stretched out points
 along the Z axis.
 
 I have attached the following for you to see 

Re: [Paraview] Time dependant field in Ensight Gold Format

2010-04-22 Thread Zhanping Liu
Hi Anthony:

   What do you mean by the time values of the ensight case file are changed
from
doubles to integers and 1.1 1.3 2.1 2.3? Can you explain more about your
changes to the original case file?

   -Zhanping

On Thu, Apr 22, 2010 at 12:22 PM, Anthony Ruiz r...@cerfacs.fr wrote:

 Hi,

 with Thomas Pedot, we've compiled paraview on mac os x snow leopard
 (10.6) from paraview cvs head checked out today (3.9.0). The problem
 is still here, however, we are able to visualize the transient data,
 provided the time values of the ensight case file are changed from
 doubles to integers.

 It seems that doubles are converted to integers since using the 4
 following time values in the ensight case :
 1.1
 1.3
 2.1
 2.3

 will result into only 2 snapshots in paraview, with time=1 and time=2.

 I attached the test case, since it is very small.

 Best regards,
 Anthony Ruiz
 --
 Cerfacs / Snecma - Ph.D. Student
 05 61 19 30 37
 --

 ___
 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




-- 
Zhanping Liu, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x 138
http://www.zhanpingliu.org
___
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


Re: [Paraview] Time dependant field in Ensight Gold Format

2010-04-22 Thread Thomas PEDOT
Hi,
paraview reads double as integer
1.1 is read as 1
1.3 as 1
2.1 as 2
2.3 as 2

So only 2 time dependant files are accessible.

2010/4/22, Zhanping Liu zhanping@kitware.com:
 Hi Anthony:

What do you mean by the time values of the ensight case file are changed
 from
 doubles to integers and 1.1 1.3 2.1 2.3? Can you explain more about your
 changes to the original case file?

-Zhanping

 On Thu, Apr 22, 2010 at 12:22 PM, Anthony Ruiz r...@cerfacs.fr wrote:

 Hi,

 with Thomas Pedot, we've compiled paraview on mac os x snow leopard
 (10.6) from paraview cvs head checked out today (3.9.0). The problem
 is still here, however, we are able to visualize the transient data,
 provided the time values of the ensight case file are changed from
 doubles to integers.

 It seems that doubles are converted to integers since using the 4
 following time values in the ensight case :
 1.1
 1.3
 2.1
 2.3

 will result into only 2 snapshots in paraview, with time=1 and time=2.

 I attached the test case, since it is very small.

 Best regards,
 Anthony Ruiz
 --
 Cerfacs / Snecma - Ph.D. Student
 05 61 19 30 37
 --

 ___
 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




 --
 Zhanping Liu, PhD
 Kitware, Inc.
 28 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-371-3971 x 138
 http://www.zhanpingliu.org

___
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


[Paraview] Paraview 3.8-RC1

2010-04-22 Thread wastrel
I installed PV-3.8-RC1, but it either crashes or does not respond when
loading data.

My system: Intel Xeon(R) CPU @ 2.66GHz; 3G RAM; WXP Service Pack 3.
___
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


Re: [Paraview] 3.8 RC1 regression in line chart ?

2010-04-22 Thread Scott, W Alan
Richard,
1) This seems to work fine on the trunk from a few days ago.
2) This seems to work fine on the trunk from a few days ago.
3) Good catch - this is a bug.  I wrote up a bug report, bug number 10597.

Alan

-Original Message-
From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Richard GRENON
Sent: Thursday, April 22, 2010 7:59 AM
To: paraview@paraview.org
Subject: [Paraview] 3.8 RC1 regression in line chart ?

Hello, here is me again.

I have found some kind of regression with the line charts (XY plots) in PV 3.8 
RC1:
First, loading a very simple csv file with three columns (named P, R and T), 
then using filter PlotData:

1. the XY windows comes with the top VARIABLE box unchecked and all my 
variables (P, V, T) boxes checked in the Line Series panel of the Display tab, 
but the XY window remains empty until I check the top VARIABLE box. The 
default X axis is the Row ID. OK.

2. Now I want to use one of my three data arrays as the X axis: I select the 
radio-button and the first variable P is selected by default on the list-box. 
OK, this is the variable I want on the X axis, but I get many error messages 
because No X column is set (index 0). I have to select another X axis 
variable, then to come again on the P variable. No more error, but the X axis 
remains scaled with the Row ID values! I have to uncheck a variable in the line 
series panel and to check it again to obtain the correct P values on the X 
axis. Finally I get my three curves and I can change the X axis variable as I 
want.

3. All variables are scaled by default with the bottom-left axis system and I 
want to scale one of the variables on the right axis. I select one variable in 
the Line series panel and I try to change the default bottom-left Chart Axes 
for bottom-right or top-right axis system. 
Nothing happens: the top and right axis don't appear and all variables remain 
scaled on the bottom-left axis system. I can change some attributes of the 
variable (Line thickness, Line Style, Marker), but not the Chart Axes, although 
it was possible to change the Chart Axes with PV 3.6.2.

I attach the very small csv file that I used for my tests.

Regards.

Richard

--
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:richard.gre...@onera.fr
 http://www.onera.fr


___
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


Re: [Paraview] 3.8 RC1 regression in line chart ?

2010-04-22 Thread Marcus D. Hanwell
You beat me to replying to this ;-)

On Thu, Apr 22, 2010 at 3:44 PM, Scott, W Alan wasc...@sandia.gov wrote:

 Richard,
 1) This seems to work fine on the trunk from a few days ago.
 2) This seems to work fine on the trunk from a few days ago.


Utkarsh and I tracked these issues down, and the fixes have been pushed to
the 3.8 branch.


 3) Good catch - this is a bug.  I wrote up a bug report, bug number 10597.


I will see what I can do here.

Marcus

 -Original Message-
 From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
 On Behalf Of Richard GRENON
 Sent: Thursday, April 22, 2010 7:59 AM
 To: paraview@paraview.org
 Subject: [Paraview] 3.8 RC1 regression in line chart ?

 Hello, here is me again.

 I have found some kind of regression with the line charts (XY plots) in PV
 3.8 RC1:
 First, loading a very simple csv file with three columns (named P, R and
 T), then using filter PlotData:

 1. the XY windows comes with the top VARIABLE box unchecked and all my
 variables (P, V, T) boxes checked in the Line Series panel of the Display
 tab, but the XY window remains empty until I check the top VARIABLE box.
 The default X axis is the Row ID. OK.

 2. Now I want to use one of my three data arrays as the X axis: I select
 the radio-button and the first variable P is selected by default on the
 list-box. OK, this is the variable I want on the X axis, but I get many
 error messages because No X column is set (index 0). I have to select
 another X axis variable, then to come again on the P variable. No more
 error, but the X axis remains scaled with the Row ID values! I have to
 uncheck a variable in the line series panel and to check it again to obtain
 the correct P values on the X axis. Finally I get my three curves and I can
 change the X axis variable as I want.

 3. All variables are scaled by default with the bottom-left axis system and
 I want to scale one of the variables on the right axis. I select one
 variable in the Line series panel and I try to change the default
 bottom-left Chart Axes for bottom-right or top-right axis system.
 Nothing happens: the top and right axis don't appear and all variables
 remain scaled on the bottom-left axis system. I can change some attributes
 of the variable (Line thickness, Line Style, Marker), but not the Chart
 Axes, although it was possible to change the Chart Axes with PV 3.6.2.

 I attach the very small csv file that I used for my tests.

 Regards.

 Richard

 --
  Richard GRENON
  ONERA
  Departement d'Aerodynamique Appliquee - DAAP/ACI
  8 rue des Vertugadins
  92190 MEUDON - FRANCE
  phone : +33 1 46 73 42 17
  fax   : +33 1 46 73 41 46
  mailto:richard.gre...@onera.fr
  http://www.onera.fr


 ___
 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

___
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


Re: [Paraview] Paraview 3.8-RC1

2010-04-22 Thread Dave Partyka
What kind of data? Are you able to share your dataset?

On Thu, Apr 22, 2010 at 3:28 PM, wast...@gmail.com wrote:

 I installed PV-3.8-RC1, but it either crashes or does not respond when
 loading data.

 My system: Intel Xeon(R) CPU @ 2.66GHz; 3G RAM; WXP Service Pack 3.


 ___
 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


___
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


Re: [Paraview] 3.8 RC1 regression in line chart ?

2010-04-22 Thread Dave Partyka
Richard, are you using Git now? Or is this with CVS?

On Thu, Apr 22, 2010 at 4:22 PM, Marcus D. Hanwell 
marcus.hanw...@kitware.com wrote:

 You beat me to replying to this ;-)

 On Thu, Apr 22, 2010 at 3:44 PM, Scott, W Alan wasc...@sandia.gov wrote:

 Richard,
 1) This seems to work fine on the trunk from a few days ago.
 2) This seems to work fine on the trunk from a few days ago.


 Utkarsh and I tracked these issues down, and the fixes have been pushed to
 the 3.8 branch.


 3) Good catch - this is a bug.  I wrote up a bug report, bug number 10597.


 I will see what I can do here.

 Marcus

  -Original Message-
 From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
 On Behalf Of Richard GRENON
 Sent: Thursday, April 22, 2010 7:59 AM
 To: paraview@paraview.org
 Subject: [Paraview] 3.8 RC1 regression in line chart ?

 Hello, here is me again.

 I have found some kind of regression with the line charts (XY plots) in PV
 3.8 RC1:
 First, loading a very simple csv file with three columns (named P, R and
 T), then using filter PlotData:

 1. the XY windows comes with the top VARIABLE box unchecked and all my
 variables (P, V, T) boxes checked in the Line Series panel of the Display
 tab, but the XY window remains empty until I check the top VARIABLE box.
 The default X axis is the Row ID. OK.

 2. Now I want to use one of my three data arrays as the X axis: I select
 the radio-button and the first variable P is selected by default on the
 list-box. OK, this is the variable I want on the X axis, but I get many
 error messages because No X column is set (index 0). I have to select
 another X axis variable, then to come again on the P variable. No more
 error, but the X axis remains scaled with the Row ID values! I have to
 uncheck a variable in the line series panel and to check it again to obtain
 the correct P values on the X axis. Finally I get my three curves and I can
 change the X axis variable as I want.

 3. All variables are scaled by default with the bottom-left axis system
 and I want to scale one of the variables on the right axis. I select one
 variable in the Line series panel and I try to change the default
 bottom-left Chart Axes for bottom-right or top-right axis system.
 Nothing happens: the top and right axis don't appear and all variables
 remain scaled on the bottom-left axis system. I can change some attributes
 of the variable (Line thickness, Line Style, Marker), but not the Chart
 Axes, although it was possible to change the Chart Axes with PV 3.6.2.

 I attach the very small csv file that I used for my tests.

 Regards.

 Richard

 --
  Richard GRENON
  ONERA
  Departement d'Aerodynamique Appliquee - DAAP/ACI
  8 rue des Vertugadins
  92190 MEUDON - FRANCE
  phone : +33 1 46 73 42 17
  fax   : +33 1 46 73 41 46
  mailto:richard.gre...@onera.fr
  http://www.onera.fr


 ___
 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



 ___
 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


___
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


Re: [Paraview] choppy derivatives

2010-04-22 Thread Peter Brady
The location we're looking at is the interface between two fluids so there
may be a discontinuity in the tangential derivatives for that reason.  I'm
trying to write my own derivative and interpolation filters in a python
programmable filter which will take  one-sided derivatives and use one-sided
interpolation.  In order to do this I need to use cell data in my filter and
not point data to avoid the interpolation that takes place.  Typically I
access point data with something like:

input = self.GetInputDataObject(0, 0)
 output = self.GetOutputDataObject(0)

 inputBlock = input.GetBlock(0)
 # copy old data
 output.CopyStructure(input)
 outputBlock = inputBlock.NewInstance()
 outputBlock.UnRegister(None)
 outputBlock.CopyStructure(inputBlock)
 output.SetBlock(0,outputBlock)

 # get number of points
 numPts = input.GetNumberOfPoints()
 # temperature gradient
 GtArr = input.GetPointData().GetVectors('ScalarGradient')


However, there doesn't seem to be an equivalent 'GetNumberOfCells()' or
'GetCellData()' for my multiblock data.  How can I access the cell data?

Thanks for your help,

Peter.

On Tue, Mar 30, 2010 at 10:15 AM, Berk Geveci berk.gev...@kitware.comwrote:

 I wonder if this is because of the multiple celldata - point data
 conversions. Do you have an example dataset you can share?

 On Sun, Mar 28, 2010 at 1:45 AM, Peter Brady petertbr...@gmail.com
 wrote:
  Hello list,
 
  I have a 3D dataset with a Temperature field.  My goal is to insert a
 sphere
  source and determine the tangential temperature gradient on the surface
 of
  the sphere at various zenith angles.  The data is output from the code as
  cell data.  Here is the way I'm doing this (through pvpython)
 
  1.  Apply CellDataToPointData
  2.  Apply ComputeDerivatives (to get the 'Scalar Gradient')
  3.  Apply another CellDataToPointData (to turn the derivatives into point
  data)
  4.  Resample the data from step 3 with my sphere source.
  5.  Use a programmable filter to combine the xyz derivatives
 appropriately.
 
  The data is reasonable but it's fairly choppy.  When I look at dT/dx,
 dT/dy,
  and dT/dz (before I project them onto the sphere surface), and plot them
 at
  a particular zenith angle around the azimuth of the drop, dTdx and dTdy
 are
  very smooth but dT/dz is fairly choppy (especially above the equator of
 the
  drop).  If I expand my sphere to a place where there's not a lot going on
  dT/dz seems to calm down.  Is there a way to smooth dT/dz in the location
 of
  interest or should I try to write my own derivatives filter to make them
  smoother?  Any thoughts?
 
  Thanks,
  Peter.
 
  ___
  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
 
 

___
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


[Paraview] SpreadSheet view doesn't work unless there is PointData

2010-04-22 Thread David Doria
If you make a source (I tested with a cone source), split the view to
show a spreadsheet view, and select a point on the cone, nothing shows
up in the spreadsheet view. In fact, under Attribute the only option
is FieldData. If you do something so that the points get PointData
(e.g. GenerateSurfaceNormals), you can then select a point and see the
normal, coordinate, and point ID of the selected point. Is there a
reason for this behavior? Or could it be changed so that the
coordinate and ID could be seen even if the object doesn't have any
PointData?

Thanks,

David
___
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


[Paraview] Two input plugin not available

2010-04-22 Thread David Doria
I have a VTK class that takes two inputs:

int vtkRestorePolyDataPointIds::FillInputPortInformation(
int port, vtkInformation* info)
{
  if ( port == 0 ) //this is the polydata we want to correct
{
info-Set(vtkDataObject::DATA_TYPE_NAME(), vtkPolyData );
return 1;
}
  else if(port == 1) //this is the object we want to use to match the ids to
{
info-Set(vtkDataObject::DATA_TYPE_NAME(), vtkPointSet );
return 1;
}

  return 0; //invalid port requested
}

So I made two InputProperty entires in the xml:

!--input--
  InputProperty
 name=Input
 port_index=0
 command=SetInputConnection
ProxyGroupDomain name=groups
  Group name=sources/
  Group name=filters/
/ProxyGroupDomain

DataTypeDomain name=input_type
  DataType value=vtkPolyData/
/DataTypeDomain
Documentation
  Set the input point set.
/Documentation
  /InputProperty

!--target ids--
  InputProperty
 name=TargetIds
 port_index=1
 command=SetInputConnection
ProxyGroupDomain name=groups
  Group name=sources/
  Group name=filters/
/ProxyGroupDomain

DataTypeDomain name=input_type
  DataType value=vtkPointSet/
/DataTypeDomain
Documentation
  Set the target point set.
/Documentation
  /InputProperty

However, if I create two sources ( a box and a cone), select one,
ctrl+click the other one, then go to the filters list, it is greyed
out. Can anyone see a problem with the above?

Thanks,

David
___
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


Re: [Paraview] Two input plugin not available

2010-04-22 Thread Utkarsh Ayachit
Filters have different ways of specifying inputs: you can have
multiple input connections on an input port, and/or you can have
multiple input ports.
Your filter is a multi-input port filter which accepts a single
connection on each of the 2 ports. If user selects, multiple sources
in the pipeline browser, ParaView assumes multiple connections on an
input port, thus enabling only those filters that have the Input
property such that it accepts multiple connections (like the Append
filter, Group Datasets filter etc.).

For multiple input ports, ParaView convention is that you simply
select the value for one input port; ParaView will popup a input
selection dialog to allow user to explicitly specify the sources for
the other input ports.


On Thu, Apr 22, 2010 at 5:30 PM, David Doria daviddo...@gmail.com wrote:
 I have a VTK class that takes two inputs:

 int vtkRestorePolyDataPointIds::FillInputPortInformation(
                                            int port, vtkInformation* info)
 {
  if ( port == 0 ) //this is the polydata we want to correct
    {
    info-Set(vtkDataObject::DATA_TYPE_NAME(), vtkPolyData );
    return 1;
    }
  else if(port == 1) //this is the object we want to use to match the ids to
    {
    info-Set(vtkDataObject::DATA_TYPE_NAME(), vtkPointSet );
    return 1;
    }

  return 0; //invalid port requested
 }

 So I made two InputProperty entires in the xml:

 !--input--
      InputProperty
         name=Input
         port_index=0
         command=SetInputConnection
        ProxyGroupDomain name=groups
          Group name=sources/
          Group name=filters/
        /ProxyGroupDomain

        DataTypeDomain name=input_type
          DataType value=vtkPolyData/
        /DataTypeDomain
        Documentation
          Set the input point set.
        /Documentation
      /InputProperty

 !--target ids--
      InputProperty
         name=TargetIds
         port_index=1
         command=SetInputConnection
        ProxyGroupDomain name=groups
          Group name=sources/
          Group name=filters/
        /ProxyGroupDomain

        DataTypeDomain name=input_type
          DataType value=vtkPointSet/
        /DataTypeDomain
        Documentation
          Set the target point set.
        /Documentation
      /InputProperty

 However, if I create two sources ( a box and a cone), select one,
 ctrl+click the other one, then go to the filters list, it is greyed
 out. Can anyone see a problem with the above?

 Thanks,

 David
 ___
 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

___
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


Re: [Paraview] SpreadSheet view doesn't work unless there is PointData

2010-04-22 Thread David E DeMarle
Please add that to the bug tracker.

It is a known limitation that I thought we were going to fix but it
apparently slipped through the cracks.

The workaround (which is an unfortunate one) is to use the calculator
to add an array.

David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Thu, Apr 22, 2010 at 5:17 PM, David Doria daviddo...@gmail.com wrote:
 If you make a source (I tested with a cone source), split the view to
 show a spreadsheet view, and select a point on the cone, nothing shows
 up in the spreadsheet view. In fact, under Attribute the only option
 is FieldData. If you do something so that the points get PointData
 (e.g. GenerateSurfaceNormals), you can then select a point and see the
 normal, coordinate, and point ID of the selected point. Is there a
 reason for this behavior? Or could it be changed so that the
 coordinate and ID could be seen even if the object doesn't have any
 PointData?

 Thanks,

 David
 ___
 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

___
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


Re: [Paraview] SpreadSheet view doesn't work unless there is PointData

2010-04-22 Thread David Doria
On Thu, Apr 22, 2010 at 7:51 PM, David E DeMarle
dave.dema...@kitware.com wrote:
 Please add that to the bug tracker.

 It is a known limitation that I thought we were going to fix but it
 apparently slipped through the cracks.

 The workaround (which is an unfortunate one) is to use the calculator
 to add an array.

 David E DeMarle

Done.

http://public.kitware.com/Bug/view.php?id=10598

Thanks,

David
___
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


Re: [Paraview] Two input plugin not available

2010-04-22 Thread David Doria
On Thu, Apr 22, 2010 at 5:40 PM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 Filters have different ways of specifying inputs: you can have
 multiple input connections on an input port, and/or you can have
 multiple input ports.
 Your filter is a multi-input port filter which accepts a single
 connection on each of the 2 ports. If user selects, multiple sources
 in the pipeline browser, ParaView assumes multiple connections on an
 input port, thus enabling only those filters that have the Input
 property such that it accepts multiple connections (like the Append
 filter, Group Datasets filter etc.).

 For multiple input ports, ParaView convention is that you simply
 select the value for one input port; ParaView will popup a input
 selection dialog to allow user to explicitly specify the sources for
 the other input ports.

Very cool. I added a small not to that effect on the wiki:
http://www.paraview.org/Wiki/Plugin_HowTo#Filters_with_Multiple_Input_Ports

Thanks,

David
___
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


Re: [Paraview] choppy derivatives

2010-04-22 Thread Berk Geveci
You have to get the leaf nodes of the multi-block dataset first. In
this case, I suspect inputBlock will be a leaf block.

-berk

On Thu, Apr 22, 2010 at 5:01 PM, Peter Brady petertbr...@gmail.com wrote:
 The location we're looking at is the interface between two fluids so there
 may be a discontinuity in the tangential derivatives for that reason.  I'm
 trying to write my own derivative and interpolation filters in a python
 programmable filter which will take  one-sided derivatives and use one-sided
 interpolation.  In order to do this I need to use cell data in my filter and
 not point data to avoid the interpolation that takes place.  Typically I
 access point data with something like:

 input = self.GetInputDataObject(0, 0)
 output = self.GetOutputDataObject(0)

 inputBlock = input.GetBlock(0)
 # copy old data
 output.CopyStructure(input)
 outputBlock = inputBlock.NewInstance()
 outputBlock.UnRegister(None)
 outputBlock.CopyStructure(inputBlock)
 output.SetBlock(0,outputBlock)

 # get number of points
 numPts = input.GetNumberOfPoints()
 # temperature gradient
 GtArr = input.GetPointData().GetVectors('ScalarGradient')

 However, there doesn't seem to be an equivalent 'GetNumberOfCells()' or
 'GetCellData()' for my multiblock data.  How can I access the cell data?

 Thanks for your help,

 Peter.

 On Tue, Mar 30, 2010 at 10:15 AM, Berk Geveci berk.gev...@kitware.com
 wrote:

 I wonder if this is because of the multiple celldata - point data
 conversions. Do you have an example dataset you can share?

 On Sun, Mar 28, 2010 at 1:45 AM, Peter Brady petertbr...@gmail.com
 wrote:
  Hello list,
 
  I have a 3D dataset with a Temperature field.  My goal is to insert a
  sphere
  source and determine the tangential temperature gradient on the surface
  of
  the sphere at various zenith angles.  The data is output from the code
  as
  cell data.  Here is the way I'm doing this (through pvpython)
 
  1.  Apply CellDataToPointData
  2.  Apply ComputeDerivatives (to get the 'Scalar Gradient')
  3.  Apply another CellDataToPointData (to turn the derivatives into
  point
  data)
  4.  Resample the data from step 3 with my sphere source.
  5.  Use a programmable filter to combine the xyz derivatives
  appropriately.
 
  The data is reasonable but it's fairly choppy.  When I look at dT/dx,
  dT/dy,
  and dT/dz (before I project them onto the sphere surface), and plot them
  at
  a particular zenith angle around the azimuth of the drop, dTdx and dTdy
  are
  very smooth but dT/dz is fairly choppy (especially above the equator of
  the
  drop).  If I expand my sphere to a place where there's not a lot going
  on
  dT/dz seems to calm down.  Is there a way to smooth dT/dz in the
  location of
  interest or should I try to write my own derivatives filter to make them
  smoother?  Any thoughts?
 
  Thanks,
  Peter.
 
  ___
  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
 
 


___
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


Re: [Paraview] choppy derivatives

2010-04-22 Thread Peter Brady
Fantastic!  InputBlock is a leaf block as suspected.

Until my next question,
Peter

On Thu, Apr 22, 2010 at 5:15 PM, Berk Geveci berk.gev...@kitware.comwrote:

 You have to get the leaf nodes of the multi-block dataset first. In
 this case, I suspect inputBlock will be a leaf block.

 -berk

 On Thu, Apr 22, 2010 at 5:01 PM, Peter Brady petertbr...@gmail.com
 wrote:
  The location we're looking at is the interface between two fluids so
 there
  may be a discontinuity in the tangential derivatives for that reason.
 I'm
  trying to write my own derivative and interpolation filters in a python
  programmable filter which will take  one-sided derivatives and use
 one-sided
  interpolation.  In order to do this I need to use cell data in my filter
 and
  not point data to avoid the interpolation that takes place.  Typically I
  access point data with something like:
 
  input = self.GetInputDataObject(0, 0)
  output = self.GetOutputDataObject(0)
 
  inputBlock = input.GetBlock(0)
  # copy old data
  output.CopyStructure(input)
  outputBlock = inputBlock.NewInstance()
  outputBlock.UnRegister(None)
  outputBlock.CopyStructure(inputBlock)
  output.SetBlock(0,outputBlock)
 
  # get number of points
  numPts = input.GetNumberOfPoints()
  # temperature gradient
  GtArr = input.GetPointData().GetVectors('ScalarGradient')
 
  However, there doesn't seem to be an equivalent 'GetNumberOfCells()' or
  'GetCellData()' for my multiblock data.  How can I access the cell data?
 
  Thanks for your help,
 
  Peter.
 
  On Tue, Mar 30, 2010 at 10:15 AM, Berk Geveci berk.gev...@kitware.com
  wrote:
 
  I wonder if this is because of the multiple celldata - point data
  conversions. Do you have an example dataset you can share?
 
  On Sun, Mar 28, 2010 at 1:45 AM, Peter Brady petertbr...@gmail.com
  wrote:
   Hello list,
  
   I have a 3D dataset with a Temperature field.  My goal is to insert a
   sphere
   source and determine the tangential temperature gradient on the
 surface
   of
   the sphere at various zenith angles.  The data is output from the code
   as
   cell data.  Here is the way I'm doing this (through pvpython)
  
   1.  Apply CellDataToPointData
   2.  Apply ComputeDerivatives (to get the 'Scalar Gradient')
   3.  Apply another CellDataToPointData (to turn the derivatives into
   point
   data)
   4.  Resample the data from step 3 with my sphere source.
   5.  Use a programmable filter to combine the xyz derivatives
   appropriately.
  
   The data is reasonable but it's fairly choppy.  When I look at dT/dx,
   dT/dy,
   and dT/dz (before I project them onto the sphere surface), and plot
 them
   at
   a particular zenith angle around the azimuth of the drop, dTdx and
 dTdy
   are
   very smooth but dT/dz is fairly choppy (especially above the equator
 of
   the
   drop).  If I expand my sphere to a place where there's not a lot going
   on
   dT/dz seems to calm down.  Is there a way to smooth dT/dz in the
   location of
   interest or should I try to write my own derivatives filter to make
 them
   smoother?  Any thoughts?
  
   Thanks,
   Peter.
  
   ___
   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
  
  
 
 

___
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


Re: [Paraview] Creating Animations in Paraview, where's the Animation Inspector

2010-04-22 Thread Olumide
I would like to create an animation in which the camera literally 
inspects various parts my model/scene. The sort of camera paths I need 
to specify are hard to manually describe as an animation curve (even 
very simple camera paths are hard to manually describe as animation 
curves).


Is it possible to manually move the camera to various locations, and set 
a keyframe at each location as is the practice in 3d applications? This 
would be a _lot_ simpler than specifying animation curves by hand.


Thanks,

- Olumide
___
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


Re: [Paraview] Creating Animations in Paraview, where's the Animation Inspector

2010-04-22 Thread David E DeMarle
Yes.

That is what the Interpolate camera locations track type choice is for.

To use it, set that type for the camera and then add the track. Now
double click on the track to pop up the Animation Keyframes dialog for
the path and then double click on any Position ... entry to get to
the camera location dialog. From there click on use current to copy
in the current camera value.

Note that although this lets you specify exactly where the camera is
located and pointed at, the interpolation between those points is not
a nice spline so making a nice animation with it is often not as easy
as it sounds.

I think, what we really need is a way to make the use current button
apply to nodes in the follow path or orbit modes. There might be a way
to do that that I am not aware of. If not please file a feature
request.

David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Thu, Apr 22, 2010 at 9:38 PM, Olumide 50...@web.de wrote:
 I would like to create an animation in which the camera literally inspects
 various parts my model/scene. The sort of camera paths I need to specify are
 hard to manually describe as an animation curve (even very simple camera
 paths are hard to manually describe as animation curves).

 Is it possible to manually move the camera to various locations, and set a
 keyframe at each location as is the practice in 3d applications? This would
 be a _lot_ simpler than specifying animation curves by hand.

 Thanks,

 - Olumide
 ___
 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

___
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


Re: [Paraview] Creating Animations in Paraview, where's the Animation Inspector

2010-04-22 Thread Olumide
Thanks. I've experimented with keyframes dialog. And you are right: the 
animation curve isn't nearly as nice as I'd expected.


The standard solution to camera control in 3d software is to give the 
user access to the animation curves created by setting keyframes, so 
that the user than can set or correct the tangent/tension at the keyframes.


Orbits are nice but they are very limited. Paths too are nice but they 
are extremely difficult to create define by hand. I'd vote for 
animation curves.


- Olumide
___
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