[Paraview] comparison of two dataset (same mesh ) but not in the same order

2012-05-29 Thread Felipe Bordeu

Hi,

One of my student is validating his code, and we want to compare the 
results (point data, cell data).

We have two result: one from a commercial code, and the other from our code.

The dicretisation are the same: same number of node, same number of 
element. But the order of the node and element in the files are not the 
same, so we cant use append attributes.


For for the point data we use re-sample with dataset. But the problem is 
than the celldata is automatically converted to point data (I know there 
is no definition of  re-sample with dataset with cells in the source).


So my question is Is there an easy way of sorting the point and cells 
so they have the same order for the two datasets so I can use append 
attributes?


A sort of clean to grid that also apply a unique order to the point 
and cells.


Thanks,

--

Felipe Bordeu Weldt
Ingénieur de Recherche
-
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
felipe.bor...@ec-nantes.fr
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-

___
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] Controlling Render Views without Mouse

2012-05-29 Thread Felipe Bordeu

Hi,

I tried to control my paraview from my Xoom tablet, throw plugin  
successfully.  I used a plugin that opens a port and listen to python 
commands, then from my tablet I send python command to rotate zoom, pan 
clip... (so now a have a realy big pad ;) ).


for more information read:

http://www.paraview.org/pipermail/paraview/2012-January/023704.html

Felipe

On 29/05/2012 07:23, David Zemon wrote:

Hello,

*Overview*
I am attempting to control ParaView v3.14.1 with something other than 
a mouse and keyboard. I don't know how to do this - I've taken some 
wild guesses and bits 'n' pieces have started to work. I could really 
use some help from someone that knows the inner-workings though.


*What I'd Like to Happen*
I have an class, foo, with some events and callbacks of its own. Foo 
is not related to ParaView in any way other than foo needs to make 
ParaView do stuff as it sees fit. In the callbacks, I'd like to do 
things like zoom, pan and rotate. Eventually I'd like foo to be able 
add filters and such too, but that's a long way down the road.


*What I've Tried*
foo has 3 events similar to OnButtonDown, OnMouseMove, and OnButtonUp. 
I figure, why not just call these methods (within 
vtkPVInteractorStyle) from foo? This is what I've been trying.
I have made foo a friend of vtkPVInteractorStyle. I've created a 
global pointer variable, g_pInteractorStyle, which points to 
vtkPVInteractorStyle.
I've created a mutator and two integer variables - m_x and m_y - 
within foo to hold mouse coordinates. Any time that 
GetEventPosition()[0/1] is called, I save those values to local 
variables - x and y - and pass them into foo's mutator. This way, any 
time a real mouse is used, foo gets updated coordinates. This also now 
gives me starting points to pass into OnMouseMove.
From foo I first call g_pInteractorStyle-OnButtonDown(3, 0, 0). 
Ideally, this will initiate zoom, which it seems to.
Following that, I make a series of calls following the pattern: 
g_pInteractorStyle-Current-OnMouseMove(m_x, m_y + /offset/, 
g_pInteractorStyle-CurrentRenderer, g_pInteractorStyle-Interactor), 
where /offset/ is some integer value from -49 to 49 and neither m_x or 
m_y change during the series of calls.

Finally, I call g_pInteractorStyle-OnButtonup(3).

I have also commented out one line each from OnButonDown and 
OnButtonUp: 
this-InvokeEvent(vtkCommand::[Start/End]InteractionEvent). With these 
two lines in place, OnButtonUp causes a crash. Without these lines in 
place (when they're commented out), ParaView acts just fine. I know 
this is NOT a good fix and I'm open to other suggestions, but it (this 
aspect) seems to be working at the moment.


I've also tried looking into the QT libraries and moving the cursor 
via QT. Unfortunately, I've been unable to find the right cursor 
because nothing I've done has had any effect on the cursor I'm staring 
at (tried setPos() and setShape()).


*The Problem*
OnMouseMove() has caused problem after problem. In our current setup 
OnButtonDown(3, 0, 0) works great. OnMouseMove() kills paraview when 
it reaches vtkPVRenderView::Render() called from somewhere within 
vtkPVGenericRenderWindowInteractor. In a weak attempt to fix the 
problem, I tried commenting out this Render() call. Nothing too major 
seemed to break except that I'm blind as i try to zoom until I release 
the mouse button (tests were done using the mouse at first). In other 
words: Everything still working, but no rendering during zoom - only 
renders upon releasing the mouse. I now try it with foo, and it acts 
as though OnButtonUp(3) was never called - the whole foo routine 
finishes then I use the mouse and click somewhere to start a new 
interaction, and it zooms to wherever it should have zoomed when it 
finished foo's routines.


So two options: I can either let it die every time it tries to render, 
or hold off rendering until I finish moving the mouse and then still 
be required to click the mouse somewhere when I'm finished.


This is broken. And something tells me I'm going about this in a very 
wrong fashion. How should I be doing this?


Thanks,
David Zemon
Computer


___
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



--

Felipe Bordeu Weldt
Ingénieur de Recherche
-
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
felipe.bor...@ec-nantes.fr
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep 

Re: [Paraview] comparison of two dataset (same mesh ) but not in the same order

2012-05-29 Thread Utkarsh Ayachit
I don't think such a filter exists in ParaView. You'll have to write a
custom filter or a Python programmable filter to convert one of the
datasets to the same point/cell order as the other.

Utkarsh
On Tue, May 29, 2012 at 5:15 AM, Felipe Bordeu
felipe.bor...@ec-nantes.fr wrote:
 Hi,

 One of my student is validating his code, and we want to compare the results
 (point data, cell data).
 We have two result: one from a commercial code, and the other from our code.

 The dicretisation are the same: same number of node, same number of element.
 But the order of the node and element in the files are not the same, so we
 cant use append attributes.

 For for the point data we use re-sample with dataset. But the problem is
 than the celldata is automatically converted to point data (I know there is
 no definition of  re-sample with dataset with cells in the source).

 So my question is Is there an easy way of sorting the point and cells so
 they have the same order for the two datasets so I can use append
 attributes?

 A sort of clean to grid that also apply a unique order to the point and
 cells.

 Thanks,

 --

 Felipe Bordeu Weldt
 Ingénieur de Recherche
 -
 Tél. : 33 (0)2 40 37 16 57
 Fax. : 33 (0)2 40 74 74 06
 felipe.bor...@ec-nantes.fr
 Institut GeM - UMR CNRS 6183
 École Centrale Nantes
 1 Rue de La Noë, 44321 Nantes, FRANCE
 -

 ___
 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] VTK Writer

2012-05-29 Thread Sebastien Jourdain
Hum, the GUI XML should be fine. Did you try to add those hint in the
XML itself to see if that solve the issue or not ?

Please let us know, as it looks like a bug to me.

Seb

On Mon, May 28, 2012 at 5:09 PM, Paul Edwards paul.m.edwa...@gmail.com wrote:
 Sorry, by pqXML, I meant the XML file for the GUI plugin.

 On May 28, 2012 5:55 PM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:

 Hi Paul,

 can you be more explicit in what you mean by:

  I thought the type just went in the pqXML file.

 Thanks,

 Seb

 On Mon, May 28, 2012 at 11:45 AM, Paul Edwards paul.m.edwa...@gmail.com
 wrote:
  I've just noticed that none of my writer plugins are working from the
  GUI.
   They appear but when trying to write I get the following output:
 
  Failed to create writer for:  /path/to/file.mytype
  ERROR: In /ParaView/ParaViewCore/ServerManager/vtkSMWriterFactory.cxx,
  line
  374
  vtkSMWriterFactory (0x8b3d8a0): No matching writer found for extension:
  mytype
 
  Is this intentional and do we need to put in hints for each writer now?
   I
  thought the type just went in the pqXML file.
 
  Thanks,
  Paul
 
  On 10 May 2012 20:40, Yumin Yuan yumin.y...@kitware.com wrote:
 
  Is this your own csv writer? if yes, did you have hints for the writer
  in your xml config file
 
  /WriterProxy
     ..
 
       Hints
         WriterFactory extensions=csv
            file_description=my csv writer/
       /Hints
 
  /WriterProxy
 
  This is something I found out that I have to do for my writer plugin
  with
  3.14.
  Yumin
 
  On Thu, May 10, 2012 at 2:14 PM, Utkarsh Ayachit
  utkarsh.ayac...@kitware.com wrote:
   Your script looks reasonable to me. I'll check it out.
  
   Utkarsh
  
   On Sun, May 6, 2012 at 2:44 PM, Luis Martinez
   lamtmar...@hotmail.com
   wrote:
   Hi all,
  
   I have a pvbatch script that worked in version 3.12. It uses plot
   over
   line
   and writes out CSV data.  Now I get the following error in version
   3.14:
  
   Is this a bug or am I supposed to call the writer differently in
   3.14?
  
   Thanks!
  
   Tony
  
  
  
   ERROR: In
  
  
   /build/buildd/paraview-3.14.1/ParaViewCore/ServerManager/vtkSMWriterFactory.cxx,
   line 374
   vtkSMWriterFactory (0x17ee360): No matching writer found for
   extension:
   csv
  
   Traceback (most recent call last):
     File wakeProfilesAllTurbines.py, line 65, in module
       writer.FieldAssociation = Points
   AttributeError: 'NoneType' object has no attribute
   'FieldAssociation'
  
  
  
  
   Here is the script Im using:
  
  
  
   try: paraview.simple
   except: from paraview.simple import *
   paraview.simple._DisableFirstRenderCameraReset()
   import os
   import math
   import matplotlib as mpl
   mpl.use('Agg')
   import matplotlib.pyplot as plt
   import csv
   from scipy.integrate import trapz
   # Current location
   directory=os.getcwd()
   if not os.path.exists('./wakeProfiles/plots/'):
       os.makedirs('./wakeProfiles/plots/')
   # Rotor Diameter
   D=93
   width=D*1.5
   profiles=[0.125,0.25,0.5,0.75,1,2,3,4]
   layout=open('./layout.dat')
   Umean_slice_0_vtk = LegacyVTKReader(
  
  
   FileNames=[directory+'/../ADM/sliceDataADM/12746.8908019/Umean_slice_0.vtk']
   )
   Umean_slice_1_vtk = LegacyVTKReader(
   FileNames=[directory+'/../ALM/sliceDataALM/12771/Umean_slice_0.vtk']
   )
   SetActiveSource(Umean_slice_0_vtk)
   CellDatatoPointData1 = CellDatatoPointData()
   SetActiveSource(CellDatatoPointData1)
   Calculator1 = Calculator()
   Calculator1.AttributeMode = 'point_data'
   Calculator1.Function = 'Umean_X*cos(0.8265) +
   Umean_Y*sin(0.8265)'
   Calculator1.ResultArrayName = 'U_row'
   SetActiveSource(Umean_slice_1_vtk)
   CellDatatoPointData2 = CellDatatoPointData()
   SetActiveSource(CellDatatoPointData2)
   Calculator2 = Calculator()
   Calculator2.AttributeMode = 'point_data'
   Calculator2.Function = 'Umean_X*cos(0.8265) +
   Umean_Y*sin(0.8265)'
   Calculator2.ResultArrayName = 'U_row'
   for i, turbine in enumerate(layout):
       for profile in profiles:
       SetActiveSource(Calculator1)
       PlotOverLine1 = PlotOverLine( Source=High Resolution Line
   Source )
       PlotOverLine1.Source.Resolution = 100
       alpha0=0.8265-math.atan((width/2)/(profile*D))
       alpha1=0.8265+math.atan((width/2)/(profile*D))
       L=math.sqrt((D*profile)**2+(width/2)**2)
       x0=float(turbine.split()[0])+L*math.cos(alpha0)
       y0=float(turbine.split()[1])+L*math.sin(alpha0)
       x1=float(turbine.split()[0])+L*math.cos(alpha1)
       y1=float(turbine.split()[1])+L*math.sin(alpha1)
       PlotOverLine1.Source.Point1 = [x0, y0, 65.0]
       PlotOverLine1.Source.Point2 = [x1, y1, 65.0]
       if not os.path.exists('./wakeProfiles/'+str(profile)):
       os.makedirs('./wakeProfiles/'+str(profile))
       if not os.path.exists('./wakeProfiles/plots/'+str(profile)):
       

Re: [Paraview] smoothing a blood vessels segmentation

2012-05-29 Thread David E DeMarle
Try the smooth filter. See the help on the filter for how the filter works
and what the controls do. Another option is the Loop Subdivision filter.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Sat, May 26, 2012 at 4:03 AM, Hila Hiler hilahi...@gmail.com wrote:

 Hi all,

 I have a blood vessels segmentation (as attached).
 But I don't happy with it because it's not look like a tube, more like
 chips (as marked in red) :-)
 do you have any idea how can I make it look more as a smoothed tube?

 Thanks in advance.
 Hila

 ___
 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] comparison of two dataset (same mesh ) but not in the same order

2012-05-29 Thread Moreland, Kenneth
I would go so far as to say that there probably is no easy way to find 
consistent ordering of topology. In fact, I suspect that this is an NP-hard 
problem. (General graph isomorphism certainly is.) 

I would first pursue other resampling methods. You could apply the cell centers 
filter to the grid with cell data. That gives you a cloud of points at the 
center of each cell. The distinction between cell and point data is now in name 
only. Then, resample the point data grid with the cell centers. That will give 
you the point data interpolated to the cell centers.

-Ken

Sent from my iPad so blame autocorrect.

On May 29, 2012, at 4:54 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com 
wrote:

 I don't think such a filter exists in ParaView. You'll have to write a
 custom filter or a Python programmable filter to convert one of the
 datasets to the same point/cell order as the other.
 
 Utkarsh
 On Tue, May 29, 2012 at 5:15 AM, Felipe Bordeu
 felipe.bor...@ec-nantes.fr wrote:
 Hi,
 
 One of my student is validating his code, and we want to compare the results
 (point data, cell data).
 We have two result: one from a commercial code, and the other from our code.
 
 The dicretisation are the same: same number of node, same number of element.
 But the order of the node and element in the files are not the same, so we
 cant use append attributes.
 
 For for the point data we use re-sample with dataset. But the problem is
 than the celldata is automatically converted to point data (I know there is
 no definition of  re-sample with dataset with cells in the source).
 
 So my question is Is there an easy way of sorting the point and cells so
 they have the same order for the two datasets so I can use append
 attributes?
 
 A sort of clean to grid that also apply a unique order to the point and
 cells.
 
 Thanks,
 
 --
 
 Felipe Bordeu Weldt
 Ingénieur de Recherche
 -
 Tél. : 33 (0)2 40 37 16 57
 Fax. : 33 (0)2 40 74 74 06
 felipe.bor...@ec-nantes.fr
 Institut GeM - UMR CNRS 6183
 École Centrale Nantes
 1 Rue de La Noë, 44321 Nantes, FRANCE
 -
 
 ___
 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


[Paraview] show only edges?

2012-05-29 Thread Nico Schlömer
Hi all,

I have this tetrahedron as a VTK file. Is there any way to just
display its edges? I found the Extract Edges filter, but that show
all the edges of the discretization (whereas I'm only interested in
the edges of the geometry).

Cheers,
Nico
___
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] show only edges?

2012-05-29 Thread David E DeMarle
Extract Surface-Extract Edges?

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, May 29, 2012 at 9:50 AM, Nico Schlömer nico.schloe...@gmail.comwrote:

 Hi all,

 I have this tetrahedron as a VTK file. Is there any way to just
 display its edges? I found the Extract Edges filter, but that show
 all the edges of the discretization (whereas I'm only interested in
 the edges of the geometry).

 Cheers,
 Nico
 ___
 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] [EXTERNAL] Re: show only edges?

2012-05-29 Thread Moreland, Kenneth
Or if you are only interested in viewing you could just change the display to 
wireframe, which only shows the edges on the surface.

-Ken

Sent from my iPad so blame autocorrect.

On May 29, 2012, at 6:56 AM, David E DeMarle 
dave.dema...@kitware.commailto:dave.dema...@kitware.com wrote:

Extract Surface-Extract Edges?

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, May 29, 2012 at 9:50 AM, Nico Schlömer 
nico.schloe...@gmail.commailto:nico.schloe...@gmail.com wrote:
Hi all,

I have this tetrahedron as a VTK file. Is there any way to just
display its edges? I found the Extract Edges filter, but that show
all the edges of the discretization (whereas I'm only interested in
the edges of the geometry).

Cheers,
Nico
___
Powered by www.kitware.comhttp://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.comhttp://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] show only edges?

2012-05-29 Thread Sven Buijssen
Nico,

I suggest you apply the filter vtkPolyDataSilhouette and play with its settings.
The XML plugin to expose this VTK filter in the ParaView GUI is available as
attached file for bug 12619 (http://www.paraview.org/Bug/view.php?id=12619).

Sven



Nico Schlömer wrote, On 05/29/12 15:50:
 Hi all,
 
 I have this tetrahedron as a VTK file. Is there any way to just
 display its edges? I found the Extract Edges filter, but that show
 all the edges of the discretization (whereas I'm only interested in
 the edges of the geometry).
 
 Cheers,
 Nico
 ___
 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] show only edges?

2012-05-29 Thread Albina, Frank
Can you try: Filters - Extract Surface, then Filters-Feature Edges and see if 
this is what you want?

HTH.

Frank.

-Original Message-
From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Nico Schlömer
Sent: Dienstag, 29. Mai 2012 15:51
To: paraview@paraview.org
Subject: [Paraview] show only edges?

Hi all,

I have this tetrahedron as a VTK file. Is there any way to just
display its edges? I found the Extract Edges filter, but that show
all the edges of the discretization (whereas I'm only interested in
the edges of the geometry).

Cheers,
Nico
___
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] show only edges?

2012-05-29 Thread Nico Schlömer
The vtkPolyDataSilhouette does exactly what I need.
Thanks!

--Nico


On Tue, May 29, 2012 at 4:01 PM, Sven Buijssen
sven.buijs...@tu-dortmund.de wrote:
 Nico,

 I suggest you apply the filter vtkPolyDataSilhouette and play with its 
 settings.
 The XML plugin to expose this VTK filter in the ParaView GUI is available as
 attached file for bug 12619 (http://www.paraview.org/Bug/view.php?id=12619).

 Sven



 Nico Schlömer wrote, On 05/29/12 15:50:
 Hi all,

 I have this tetrahedron as a VTK file. Is there any way to just
 display its edges? I found the Extract Edges filter, but that show
 all the edges of the discretization (whereas I'm only interested in
 the edges of the geometry).

 Cheers,
 Nico
 ___
 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] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Lorenzo
Hi all;
I was wondering if there's a way in paraview to color surfaces (ie triangles in 
a stl file) by the direction of their normals (inwards or outwards).

Meaning, if you pick a triangle, one side of it will be of one color while the 
other side will be of a different color, depending on whether that triangle 
normal is point towards the triangle of away from it.


Thank you

Lorenzo

   
___
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] Can't change cube axes color

2012-05-29 Thread Favre Jean

I am seeing this bug too with my own compilation.

Has there been a patch issued for it?

TIA
Jean
___
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] Average values over time

2012-05-29 Thread Magician
Hi all,


I want to visualize time-averaged flow patterns of 3D CFD models,
but ParaView may not have integration filter over time.
Is there any ideas to do it on latest version of ParaView?


Magician
___
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] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Cory Quammen
Lorenzo,

Yes, you can do this.

Under the Display tab, choose the color of the front face in the
Color control panel. Set the Color by option to Solid Color, then
pick the color you want with the Set Solid Color... button. Then
scroll down almost to the bottom of the Display tab. There is a
Backface Style panel. If you set the representation to Surface, you
can then pick the color of the backface.

You can do other things, to, such as turn on front face or back face
culling, which you might find useful.

Hope that helps,
Cory

On Tue, May 29, 2012 at 10:33 AM, Lorenzo lovecraf...@gmail.com wrote:
 Hi all;
 I was wondering if there's a way in paraview to color surfaces (ie triangles 
 in a stl file) by the direction of their normals (inwards or outwards).

 Meaning, if you pick a triangle, one side of it will be of one color while 
 the other side will be of a different color, depending on whether that 
 triangle normal is point towards the triangle of away from it.


 Thank you

 Lorenzo


 ___
 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Cory Quammen
Lorenzo,

Please don't forget to CC the list so that others may benefit from the
discussion now and in the future through the list archives.

As I mentioned in my previous email, using the Surface representation lets
you pick the color. I just mentioned the culling options as potentially
useful ways to see some things on your geometry. I didn't mean to lead you
astray from your goal.

Cory

On Tue, May 29, 2012 at 11:28 AM, Lorenzo lovecraf...@gmail.com wrote:

 Thank you for your help Cory, that helps a lot.
 Anyway, I cannot select a color for the Cull FrontFace/BackFace options
 (see pic attached)… If I select one of each, the back/front face simply
 disappears and it comes back if I pan the stl the other way… that's quite
 confusing if you have a complex geometry… Now, I could load my geometry
 twice and enable backface for one and front face for the other and assign
 different colors for each model but I kind of hoped there was an easier way…


 Thank you!

 Lorenzo





 Il giorno 29/mag/2012, alle ore 17:16, Cory Quammen ha scritto:

 Lorenzo,

 Yes, you can do this.

 Under the Display tab, choose the color of the front face in the
 Color control panel. Set the Color by option to Solid Color, then
 pick the color you want with the Set Solid Color... button. Then
 scroll down almost to the bottom of the Display tab. There is a
 Backface Style panel. If you set the representation to Surface, you
 can then pick the color of the backface.

 You can do other things, to, such as turn on front face or back face
 culling, which you might find useful.

 Hope that helps,
 Cory

 On Tue, May 29, 2012 at 10:33 AM, Lorenzo lovecraf...@gmail.com wrote:

 Hi all;

 I was wondering if there's a way in paraview to color surfaces (ie
 triangles in a stl file) by the direction of their normals (inwards or
 outwards).


 Meaning, if you pick a triangle, one side of it will be of one color while
 the other side will be of a different color, depending on whether that
 triangle normal is point towards the triangle of away from it.



 Thank you


 Lorenzo



 ___

 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




 --
 Cory Quammen
 Research Associate
 Department of Computer Science
 The University of North Carolina at Chapel Hill





-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
Schermata 05-2456077 alle 17.23.17.png___
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] CUDA module in ParaView

2012-05-29 Thread Burlen Loring

Hi John,

Yes, I have a filter that uses cuda. I'm in progress of adding streaming 
capability to support larger datasets, and I'd have to roll back my 
current checkout to share with you which I haven't had time to do yet. 
My experience was similar to Dave's. It's very easy to use cuda from 
with PV, more challenging to use it well. I think you'll have no problem 
even without an example to work from.


Burlen

On 05/25/2012 03:06 AM, Biddiscombe, John A. wrote:

Thanks David. I'll give it a try. it's a project that's being squeezed in 
between other stuff so takes low(ish) priority.

Incidentally, I noticed Burlen had some CUDA related stuff in SQtoolkit that I 
found when googling. I will check that for hints.
(I would like to add support for the CUDA version of the splotch mapper I've 
been helping out with, pic attached cos it looks nice)

JB

-Original Message-
From: David E DeMarle [mailto:dave.dema...@kitware.com]
Sent: 24 May 2012 21:05
To: Biddiscombe, John A.
Cc: paraview@paraview.org
Subject: Re: [Paraview] CUDA module in ParaView

Hey John,

I've been working with LANL to get their PISTON library integrated into VTK and 
ParaView. It will be making its way into master over the next few weeks. Our 
work involves both GPGPU (data manipulation only) filters and a new direct from 
thrust to GL (glInterop) mapper.

Getting vtk/paraview to use cuda wasn't too hard, just use CMake's FindCUDA 
module to get a hold of nvcc and then run that on the .cu files to get object 
files/symbols you can use from your VTK classes.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, May 10, 2012 at 5:32 AM, Biddiscombe, John A.biddi...@cscs.ch  wrote:

Has anyone out there used any filters/mappers that make use of CUDA in 
paraview, If so are there examples I can look at to get an idea of how to 
integrate some CUDA rendering into a paraview plugin. It doesn't actually have 
to be rendering as such as my current version just renders using software into 
a standard memory buffer and then copies that into OpenGL prior to letting 
paraview composite everything. It's mostly the setup/compilation etc that I 
haven't tried with CUDA and would like to experiment.

thanks

JB

--
John Biddiscombe,email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/ CSCS, Swiss National Supercomputing Centre  | Tel: 
+41 (91) 610.82.07 Via Trevano 131, 6900 Lugano, Switzerland   | Fax: 
+41 (91) 610.82.82



___
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] node/element tracking

2012-05-29 Thread Sebastien Jourdain
Hi Benjamin,

if you are using the spreadsheet view you can select the interesting
points and only show those ones. Once you play with time, you will see
the coordinates of those points updating.

If you were thinking of something else when you said tracking could
you be more precise on what you had in mind ? Live text annotation /
3D lines...

Seb

On Tue, May 29, 2012 at 1:08 PM, Chamish, Benjamin A CIV (US)
benjamin.a.chamish@mail.mil wrote:
 I have a flyer plate in a simulation and would like to track the position
 over time of a few prescribed points individually.  When I load my .exo
 files
 position is not a history variable.  If I make a selection of elements or
 nodes is there a way to track one of those single nodes or elements.  I
 thought about using a line tool but the displacement is not 1D.  There are
 two other files called a .lis and a .hiso which do track the x y z min and
 max
 displacements of the inserted blocks in my simulation but im looking for
 specific locations not just the min or max.

 Thank you

 Benjamin Chamish
 Mechanical Engineer
 Armor Mechanisms Branch
 US Army Research Laboratory
 benjamin.a.chamish@mail.mil *Note Email Change*
 410-278-8672 // FAX 410-278-8739


 ___
 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] calculator

2012-05-29 Thread Whitehead, Jared
I know this should be very simple, but it certainly doesn't appear to be.

I have to different sets of .vtk files each one representing different 
variables.  All that I want to do is see the instantaneous correlation between 
the variables, i.e. I want to multiply them together.  Unfortunately I can't 
figure out how to specify data from different files in the calculator.  When I 
group the datasets, there is nothing that indicates what the name of the 
variables are...I'm guessing that would be helpful.

 -Jared

CCS2/CNLS Postdoctoral Research Associate
Los Alamos National Laboratory
___
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] calculator

2012-05-29 Thread Utkarsh Ayachit
Take a look at this:
http://paraview.org/Wiki/ParaView/Users_Guide/Python_Calculator#Comparing_Multiple_Datasets

You can use similar approach to other arithmetic besides difference.

Utkarsh

On Tue, May 29, 2012 at 5:04 PM, Whitehead, Jared whiteh...@lanl.gov wrote:
 I know this should be very simple, but it certainly doesn't appear to be.

 I have to different sets of .vtk files each one representing different
 variables.  All that I want to do is see the instantaneous correlation
 between the variables, i.e. I want to multiply them together.  Unfortunately
 I can't figure out how to specify data from different files in the
 calculator.  When I group the datasets, there is nothing that indicates what
 the name of the variables are...I'm guessing that would be helpful.

  -Jared

 CCS2/CNLS Postdoctoral Research Associate
 Los Alamos National Laboratory

 ___
 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