[Paraview] pvtu files and Cell Type polyhedron

2012-10-30 Thread Oswald Knoth
I have a pvtu file and two vtu files.

If I load Test2.pvtu in to paraview nothing happens.

If I load the vtu files separately, I get the desired result.

If I change the CellType from 42 to 12 in the vtu files I get the correct 
output by loading Test2.pvtu.

It seems to me that the special cell type 42 is not correctly handled by the 
vtkXMLPUnstructuredGridReader

Oswald Knoth



Oswald Knoth
Institut für Troposphärenforschung
Permoserstraße 15
04318 Leipzig

0341 325 2147

kn...@tropos.de



Grid_1002.vtu
Description: Grid_1002.vtu


Grid_1001.vtu
Description: Grid_1001.vtu


Test2.pvtu
Description: Test2.pvtu
___
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 Visualization Ambiguity an a 2nd order Tetrahedra

2012-10-30 Thread Berk Geveci
Merhaba Umut,

I would give it a bit more time before compiling ParaView for vector
graphics. We are still working on resolving issues and making improvements.
We also don't have any documentation yet. I CC'ed David. He is the main
developer and can provide some more details.

Best,
-berk

On Wed, Oct 24, 2012 at 10:26 AM, Umut Tabak umut.ta...@gmail.com wrote:

 On 10/23/2012 09:01 PM, Berk Geveci wrote:

 Ah, now I understand. This should be fixed. Try using a nightly
 binary. To download one, look at this page:

 http://paraview.org/Wiki/**ParaView/Superbuildhttp://paraview.org/Wiki/ParaView/Superbuild

 and look for instruction on how to download generated binaries.

 Berk,

 Thanks for this information, I would like to compile Paraview with vector
 graphics export facilites, especially svg if possible.

 Where shall I look for these instructions?

 Best,

 Umut

 P.S. Selamlar ;-)

___
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 Visualization Ambiguity an a 2nd order Tetrahedra

2012-10-30 Thread David Lonie
On Tue, Oct 30, 2012 at 10:57 AM, Berk Geveci berk.gev...@kitware.com wrote:
 Merhaba Umut,

 I would give it a bit more time before compiling ParaView for vector
 graphics. We are still working on resolving issues and making improvements.
 We also don't have any documentation yet. I CC'ed David. He is the main
 developer and can provide some more details.

 On Wed, Oct 24, 2012 at 10:26 AM, Umut Tabak umut.ta...@gmail.com wrote:
 Thanks for this information, I would like to compile Paraview with vector
 graphics export facilites, especially svg if possible.

The superbuild packages already have the vector graphics export built
in (I verified with last night's build). If you'd like to build your
own version, the current 'master' branch on git will have support for
this feature (see
http://www.paraview.org/Wiki/ParaView:Build_And_Install and follow the
directions for the development version from git).

To export a scene, use File - Export Scene, and select a vector
graphics format. Currently, we have basic support for exporting 3D
scenes and 2D charts as .ps, .eps, .svg, and .pdf files.

Dave
___
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] KEYS_TO_COPY method

2012-10-30 Thread Yves Rogez

Hi,

I'm trying to implement a self-made plugin in Paraview, using a working 
VTK filter.

This filter sets a key into the information of my output data set

   /outInfo = output-GetInformation()/


I have to retrieve this key into the RequestData() pass of the connected 
filter. It works well in a pure VTK pipeline, but in Paraview, it seems 
that an intermediate filter vtkPVPostFilter drops this information key.
So I found in this mailing list that keys could be copied, by appending 
the key to KEYS_TO_COPY() key of the information.

What I do by

   /outInfo-AppendUnique(vtkExecutive::KEYS_TO_COPY(),
   cnsVTK_ResultReader_HDF5::DATA_POINTER());/

The output information PrintSelf() :

   /Debug: Off/
   /Modified Time: 235702/
   /Reference Count: 1/
   /Registered Events: (none)/
   /DATA_POINTER: 1757632496/
   /DATA_NUMBER_OF_PIECES: 0/
   /KEYS_TO_COPY: DATA_POINTER/
   /DATA_EXTENT_TYPE: 0/
   /DATA_PIECE_NUMBER: -1/
   /DATA_NUMBER_OF_GHOST_LEVELS: 0/
   /End of result reader Request Data/

But the key is not copied, or at least, I can't read it into the 
consumer RequestData() pass :


   /inInfo = inputDataSet-GetInformation()/

The /inInfo/ PrintSelf() :

   /Debug: Off/
   /Modified Time: 234317/
   /Reference Count: 1/
   /Registered Events: (none)/
   /DATA_NUMBER_OF_PIECES: 1/
   /DATA_EXTENT_TYPE: 0/
   /DATA_PIECE_NUMBER: 0/
   /DATA_NUMBER_OF_GHOST_LEVELS: 0/

So, all specific information keys have been deleted...

Thank you in advance for your help,

Yves

--
Yves Rogez

*IPAG CNRS/UJF*
/Institut de Planétologie et d'Astrophysique de Grenoble/
Bat D de Physique - BP. 53 - 38041 Grenoble - FRANCE

*tel : +33 (0)4 76 63 52 80*
lab : +33 (0)4 76 63 52 89
___
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] Using VR-Style input devices

2012-10-30 Thread Johannes Zarl
Hello again,

Today I tried out the new VR improvements in the master branch. I can tell 
it's a big improvement over the state-file-hacking. Connecting some tracker 
input to an object is so much easier (and less error-prone) now!

However, some issues remain for me:

1) GUI-Improvements:
 - It would be nice if one could specify the TrackerTransform via the GUI
 - The ability to load tracker-configurations from a file would be handy
 - When connecting tracker-input to objects, it would be nice if only 
compatible properties were displayed.
 - It would be nice if the grab tool would work globally, more like the mouse, 
and not have to be connected to a specific object.

2) Display issues:
 - In a curved screen setup powered by 3 overlapping projectors, the 
perspective seems to be incorrect:
This can be most easily observed when you move your head past the coordinate 
system origin. What I would expect to see is that the z-axis (pointing out of 
the screen) points somewhat to the right when my x-position is negative, and 
to the left when my x-position is positive. What I actually see is that the 
perspective of the axis-cross does not change.
What could I have messed up in the configuration that would cause this?

 - When moving a Slice-plane using the tracker (SliceOrigin,SliceOrientation), 
the displayed slice plane is not updated. I can see that the plane was moved 
on the client window, but the actual slice is not affected. I have to move the 
plane a little with the mouse to trigger an update of the slice.

 - Grabbing an object only affects the object in the client window, not the 
server view. 
When the Grab tool is connected to an object, I can move that object around, 
but I only see this in the client window. On the server side, things are 
totally unaffected by the changes. (I didn't test this one again with the new 
git master, so excuse me if it has been fixed since 3.14.1)

3) Loose ends
I didn't find anything I can do with an analog input. Do I have to enable some 
special build option to enable those?

Cheers,
  Johannes


Am 24.10.2012, 17:01:37 schrieb Aashish Chaudhary:
 Hi Johannes,
 
 Very recently, we have improved the VR API and related tools and now
 the VR plugin comes with a GUI to configure connection managers and
 interactor styles.
 
 The way it works now is that you create a connection manager (lines
 475 - 483), which will be generated by the GUI if used, and then for
 the styles,
 you would link it with the ID of the proxy and its specific property
 that you want to control. Now said that the GUI shows you the name of
 the proxy and not the ID
 for obvious reasons. Then depending upon the type of the proxy and
 property you specify a particular input from a HCI device. Currently
 we support analog, button, and tracker.
 
 The wiki here is bit old:
 http://www.paraview.org/Wiki/ParaView/Users_Guide/CAVE_Display
 We wrote a source article as well:
 http://www.kitware.com/source/home/post/66
 
 This recent work is not in master yet (hopefully this Friday) but you
 can checkout this branch: vtk_vr_improvements_new_gui
 if you want to from paraview stage repository. The branch contains
 bunch of bug fixes, and API improvements.
 
 475   VRConnectionManager
 476 VRUIConnection name=vrui address=localhost port = 8555
 477   Button id=0 name=1/
 478   Button id=1 name=2/
 479   Button id=2 name=3/
 480   Tracker id=0 name=head/
 481   Tracker id=1 name=wand/
 482 /VRUIConnection
 483   /VRConnectionManager
 484   VRInteractorStyles
 485 Style class=vtkVRTrackStyle proxy=267
 property=EyeTransformMatrix
 486   Tracker name=vrui.head/
 487 /Style
 488 Style class=vtkVRGrabWorldStyle proxy=267
 property=ModelTransformMatrix
 489   Tracker name=vrui.wand/
 490   Button name=vrui.1/
 491 /Style
 492/VRInteractorStyles
 
 On Wed, Oct 24, 2012 at 9:40 AM, Johannes Zarl johannes.z...@jku.at wrote:
  Hi,
  
  I'm currently trying to configure ParaView for a CAVE-like environment.
  So far I was able to set up the pvservers correctly and even make
  headtracking over VRPN work.
  
  Myself, I'm more of a newbie concerning ParaView, so I'm having some
  trouble understanding the state-file and how to define a wand-device so
  that ParaView can use it.
  
  As far as I understand it, the VRPlugin reads the VRConnectionManager and
  VRInteractorStyles tags from the state-file and makes the connection to
  the server.
  
  The Styles in VRInteractorStyles are supposed to reference a proxy name,
  that they are then attached to. So in this example:
  
  VRInteractorStyles
  
 ...snip...

Style class=vtkVRStyleGrabNTranslateSliceOrigin
  
  origin=CutFunction.Origin
  
 Button name=travel.2/
 Tracker name=travel.wand/

/Style
Style class=vtkVRStyleGrabNRotateSliceNormal
normal=CutFunction.Normal

  Button name=travel.3/
  Tracker name=travel.wand/

/Style
  
  /VRInteractorStyles
  

Re: [Paraview] KEYS_TO_COPY method

2012-10-30 Thread Berk Geveci
Hi Yves,

You need to make sure that you are setting the right keys on the right
information objects. We use quite a few different information objects so
this is confusing at times.

You need to set KEYS_TO_COPY() on the request (first argument to
RequestData).
You need to set the key/value you want copied on the output information
(outInfo) and read it from input information.

The data object's information object is not used for pipeline purposes so
you can't do:

*inInfo = inputDataSet-GetInformation()*
*
*
You should do:

inInfo = inputVector[0]-GetInformationObject(0);

Best,
-berk


On Tue, Oct 30, 2012 at 11:28 AM, Yves Rogez yves.ro...@obs.ujf-grenoble.fr
 wrote:

  Hi,

 I'm trying to implement a self-made plugin in Paraview, using a working
 VTK filter.
 This filter sets a key into the information of my output data set

 *outInfo = output-GetInformation()*


 I have to retrieve this key into the RequestData() pass of the connected
 filter. It works well in a pure VTK pipeline, but in Paraview, it seems
 that an intermediate filter vtkPVPostFilter drops this information key.
 So I found in this mailing list that keys could be copied, by appending
 the key to KEYS_TO_COPY() key of the information.
 What I do by

 *outInfo-AppendUnique(vtkExecutive::KEYS_TO_COPY(),
 cnsVTK_ResultReader_HDF5::DATA_POINTER());*

 The output information PrintSelf() :

 *Debug: Off*
 *Modified Time: 235702*
 *Reference Count: 1*
 *Registered Events: (none)*
 *DATA_POINTER: 1757632496*
 *DATA_NUMBER_OF_PIECES: 0*
 *KEYS_TO_COPY: DATA_POINTER*
 *DATA_EXTENT_TYPE: 0*
 *DATA_PIECE_NUMBER: -1*
 *DATA_NUMBER_OF_GHOST_LEVELS: 0*
 *End of result reader Request Data*

 But the key is not copied, or at least, I can't read it into the consumer
 RequestData() pass :

 *inInfo = inputDataSet-GetInformation()*

 The *inInfo* PrintSelf() :

 *Debug: Off*
 *Modified Time: 234317*
 *Reference Count: 1*
 *Registered Events: (none)*
 *DATA_NUMBER_OF_PIECES: 1*
 *DATA_EXTENT_TYPE: 0*
 *DATA_PIECE_NUMBER: 0*
 *DATA_NUMBER_OF_GHOST_LEVELS: 0*

 So, all specific information keys have been deleted...

 Thank you in advance for your help,

 Yves

 --
 Yves Rogez

 *IPAG CNRS/UJF*
 *Institut de Planétologie et d'Astrophysique de Grenoble*
 Bat D de Physique - BP. 53 - 38041 Grenoble - FRANCE

 *tel : +33 (0)4 76 63 52 80*
 lab : +33 (0)4 76 63 52 89

 ___
 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] Use of glyph inside a C++ filter

2012-10-30 Thread Nehme Bilal
Hello,

I am trying to use the glyph filter internally inside another C++ filter.

To set a normal property, I just use the associated command as show below:

vtkPVGlyphFilter* glyph = vtkPVGlyphFilter::New();

glyph-SetInput(tmpOutput);

glyph-SetSource(disk-GetOutput());

glyph-SetScaleMode(1);

glyph-SetOrient(1);

However, I am not sure how to set the properties that use a
command=SetInputArrayToProcess.

For example how do I tell the glyph filter which property contains the
vectors to use (SelectInputVectors).

In other words, what should I use instead of SetSelectInputVectors(...)
which doesn't exists because SetInputArrayToProcess is used instead.



Thanks,

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