Re: [Paraview] pvpython WriteImage output corrupted

2013-04-15 Thread Masquelet, Matthieu (GE Global Research)
That does not seem to help. On the other hand, I've personally had success by 
adding a pause (time.sleep(0.5)) in my loop after each Delete(view). Does that 
help you pinpoint the issue? Note that I use on-screen rendering regardless as 
I cannot build paraview with OpenMesa on my system at this point.

Thanks in advance,

Matthieu

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] 
Sent: Friday, April 12, 2013 6:38 PM
To: Masquelet, Matthieu (GE Global Research)
Cc: Taylor, Erin M.; ParaView
Subject: Re: [Paraview] pvpython WriteImage output corrupted

I wonder if has something to do with the offscreen rendering. Try the following 
before Writeimage():

view.UseOffscreenRenderingForScreenshots = 0

Does that help?

Utkarsh


On Thu, Apr 11, 2013 at 2:37 PM, Masquelet, Matthieu (GE Global
Research) masque...@ge.com wrote:
 I have experienced similar issues to a lesser level. Say if I'm looping over 
 20 files to generate snapshots for a movie, sometimes, 1 or 2 of these will 
 be corrupted in a fashion similar to what is reported here. Also using 3.98.1 
 on Linux 64-bit, writing png files.

 Hope this helps,

 Matthieu

 -Original Message-
 From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
 Behalf Of Taylor, Erin M.
 Sent: Thursday, April 11, 2013 11:11 AM
 To: Taylor, Erin M.; ParaView
 Subject: Re: [Paraview] pvpython WriteImage output corrupted

 I should also add that I can output images from the ParaView GUI in the linux 
 machine with no problems.  It's just pvpython WriteImage output that is 
 corrupted.



 On 4/11/13 11:08 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

Hi all,

I have a pvpython script that I've been developing and running 
successfully on Mac OSX 10.6.8.  It renders a csv data set as points, then
saves an image to file.It basically boils down to this:

cr = CSVReader()
cr.FileName = filename
cr.UpdatePipeline()
tp = TableToPoints(cr)
tp.XColumn = 'x'
tp.YColumn = 'y'
tp.ZColumn = 'z'
tp.UpdatePipeline()

Render()
view = GetRenderView()
WriteImage(image_path, view, Magnification = 2)


This works on the mac using pvpython.  However when I try to run the 
same script on a 64 bit linux machine (same version of paraview, 
3.98.1), the image that is output from WriteImage is corrupted.  By 
that I mean the image is a mess of black and white noise.  Sometimes 
the images have a portion of the script output rendered correctly in a 
tile of the image.  I should note that the image is rendered properly 
in the view window on this linux machine, it is just the saved output 
that is corrupted.  I have tried .png and .jpg image output with the same 
result.

I appreciate any ideas anyone might have on the cause of this!

Many thanks,

Erin


___
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
___
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] pvpython WriteImage output corrupted

2013-04-15 Thread Taylor, Erin M.
I have tried setting the view.UseOffscreenRendringForScreenshots to 0 with
no luck.  Still the same corrupted image output.

And I am making a series of images in a loop also.  I am updating the same
view, however, not deleting and recreating a new one.  I wonder if that
would work.

Also, in the last few days I've built paraview from source with OSMesa
support and tried using offscreen rendering, but that results in a seg
fault at Render().  I must not have it set up properly.  I followed the
instructions for build with OSMesa support, and it compiled and built
successfully, but haven't had luck getting the script to run with
offscreen rendering yet.

Erin




On 4/15/13 9:19 AM, Masquelet, Matthieu (GE Global Research)
masque...@ge.com wrote:

That does not seem to help. On the other hand, I've personally had
success by adding a pause (time.sleep(0.5)) in my loop after each
Delete(view). Does that help you pinpoint the issue? Note that I use
on-screen rendering regardless as I cannot build paraview with OpenMesa
on my system at this point.

Thanks in advance,

Matthieu

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Friday, April 12, 2013 6:38 PM
To: Masquelet, Matthieu (GE Global Research)
Cc: Taylor, Erin M.; ParaView
Subject: Re: [Paraview] pvpython WriteImage output corrupted

I wonder if has something to do with the offscreen rendering. Try the
following before Writeimage():

view.UseOffscreenRenderingForScreenshots = 0

Does that help?

Utkarsh


On Thu, Apr 11, 2013 at 2:37 PM, Masquelet, Matthieu (GE Global
Research) masque...@ge.com wrote:
 I have experienced similar issues to a lesser level. Say if I'm looping
over 20 files to generate snapshots for a movie, sometimes, 1 or 2 of
these will be corrupted in a fashion similar to what is reported here.
Also using 3.98.1 on Linux 64-bit, writing png files.

 Hope this helps,

 Matthieu

 -Original Message-
 From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Taylor, Erin M.
 Sent: Thursday, April 11, 2013 11:11 AM
 To: Taylor, Erin M.; ParaView
 Subject: Re: [Paraview] pvpython WriteImage output corrupted

 I should also add that I can output images from the ParaView GUI in the
linux machine with no problems.  It's just pvpython WriteImage output
that is corrupted.



 On 4/11/13 11:08 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

Hi all,

I have a pvpython script that I've been developing and running
successfully on Mac OSX 10.6.8.  It renders a csv data set as points,
then
saves an image to file.It basically boils down to this:

cr = CSVReader()
cr.FileName = filename
cr.UpdatePipeline()
tp = TableToPoints(cr)
tp.XColumn = 'x'
tp.YColumn = 'y'
tp.ZColumn = 'z'
tp.UpdatePipeline()

Render()
view = GetRenderView()
WriteImage(image_path, view, Magnification = 2)


This works on the mac using pvpython.  However when I try to run the
same script on a 64 bit linux machine (same version of paraview,
3.98.1), the image that is output from WriteImage is corrupted.  By
that I mean the image is a mess of black and white noise.  Sometimes
the images have a portion of the script output rendered correctly in a
tile of the image.  I should note that the image is rendered properly
in the view window on this linux machine, it is just the saved output
that is corrupted.  I have tried .png and .jpg image output with the
same result.

I appreciate any ideas anyone might have on the cause of this!

Many thanks,

Erin


___
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

___
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] Opening xyz file /DEM in Paraview

2013-04-15 Thread Hedieh Ebrahimi
Hello all,

I have a Dataset with .xyz extension. I couldn´t open it in Paraview, so I
converted the file to .csv

now I have a dataset with 3 arrays corresponding to x, y and z co-ordinates.

I used the Table to Points filter and I converted the my coordinates to
points.


Could anybody please tell me how I can open .xyz or .xyz.dat or .dat in
Paraview to represent Digital Elevation Model?

Second, If I am importing csv. files in to paraview, what can i do to get
some kind of grid out of these points to better represent the geometry that
I was planning to show using the DEM ?

Thanks for any help
___
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] pvpython WriteImage output corrupted

2013-04-15 Thread Taylor, Erin M.
For what it's worth, I've isolated the seg fault for off screen rendering
using pdb.

I call pvbatch --use-offscreen-rendering simpleTest.py  (I have paraview
built using OSMesa support)

And pdb shows the seg fault during Render() is coming from
servermanager.py(346)__ConvertArgumentsAndCall()
retVal = func(*newArgs)

The simpleTest.py script contains the following:

from paraview.simple import *
import pdb
s = sphere()
Show(s)
pdb.set_trace()
Render()
WriteImage(testimage.png)



Erin




On 4/15/13 9:30 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

I have tried setting the view.UseOffscreenRendringForScreenshots to 0 with
no luck.  Still the same corrupted image output.

And I am making a series of images in a loop also.  I am updating the same
view, however, not deleting and recreating a new one.  I wonder if that
would work.

Also, in the last few days I've built paraview from source with OSMesa
support and tried using offscreen rendering, but that results in a seg
fault at Render().  I must not have it set up properly.  I followed the
instructions for build with OSMesa support, and it compiled and built
successfully, but haven't had luck getting the script to run with
offscreen rendering yet.

Erin




On 4/15/13 9:19 AM, Masquelet, Matthieu (GE Global Research)
masque...@ge.com wrote:

That does not seem to help. On the other hand, I've personally had
success by adding a pause (time.sleep(0.5)) in my loop after each
Delete(view). Does that help you pinpoint the issue? Note that I use
on-screen rendering regardless as I cannot build paraview with OpenMesa
on my system at this point.

Thanks in advance,

Matthieu

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Friday, April 12, 2013 6:38 PM
To: Masquelet, Matthieu (GE Global Research)
Cc: Taylor, Erin M.; ParaView
Subject: Re: [Paraview] pvpython WriteImage output corrupted

I wonder if has something to do with the offscreen rendering. Try the
following before Writeimage():

view.UseOffscreenRenderingForScreenshots = 0

Does that help?

Utkarsh


On Thu, Apr 11, 2013 at 2:37 PM, Masquelet, Matthieu (GE Global
Research) masque...@ge.com wrote:
 I have experienced similar issues to a lesser level. Say if I'm looping
over 20 files to generate snapshots for a movie, sometimes, 1 or 2 of
these will be corrupted in a fashion similar to what is reported here.
Also using 3.98.1 on Linux 64-bit, writing png files.

 Hope this helps,

 Matthieu

 -Original Message-
 From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Taylor, Erin M.
 Sent: Thursday, April 11, 2013 11:11 AM
 To: Taylor, Erin M.; ParaView
 Subject: Re: [Paraview] pvpython WriteImage output corrupted

 I should also add that I can output images from the ParaView GUI in the
linux machine with no problems.  It's just pvpython WriteImage output
that is corrupted.



 On 4/11/13 11:08 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

Hi all,

I have a pvpython script that I've been developing and running
successfully on Mac OSX 10.6.8.  It renders a csv data set as points,
then
saves an image to file.It basically boils down to this:

cr = CSVReader()
cr.FileName = filename
cr.UpdatePipeline()
tp = TableToPoints(cr)
tp.XColumn = 'x'
tp.YColumn = 'y'
tp.ZColumn = 'z'
tp.UpdatePipeline()

Render()
view = GetRenderView()
WriteImage(image_path, view, Magnification = 2)


This works on the mac using pvpython.  However when I try to run the
same script on a 64 bit linux machine (same version of paraview,
3.98.1), the image that is output from WriteImage is corrupted.  By
that I mean the image is a mess of black and white noise.  Sometimes
the images have a portion of the script output rendered correctly in a
tile of the image.  I should note that the image is rendered properly
in the view window on this linux machine, it is just the saved output
that is corrupted.  I have tried .png and .jpg image output with the
same result.

I appreciate any ideas anyone might have on the cause of this!

Many thanks,

Erin


___
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 

Re: [Paraview] Opening xyz file /DEM in Paraview

2013-04-15 Thread Berk Geveci
If you actually have data in DEM format (
http://en.wikipedia.org/wiki/USGS_DEM), you can open it in ParaView by
simply adding a .dem extension to the file. I am not sure if this is the
case though. .xyz is a pretty common extension so it is hard for us to help
without knowing specifics.

If you load in a set of points with csv reader, you can use one of the
Delaunay filters to mesh them.

Best,
-berk


On Mon, Apr 15, 2013 at 10:07 AM, Hedieh Ebrahimi 
hedieh.ebrah...@amphos21.com wrote:

 Hello all,

 I have a Dataset with .xyz extension. I couldn´t open it in Paraview, so I
 converted the file to .csv

 now I have a dataset with 3 arrays corresponding to x, y and z
 co-ordinates.

 I used the Table to Points filter and I converted the my coordinates to
 points.


 Could anybody please tell me how I can open .xyz or .xyz.dat or .dat in
 Paraview to represent Digital Elevation Model?

 Second, If I am importing csv. files in to paraview, what can i do to get
 some kind of grid out of these points to better represent the geometry that
 I was planning to show using the DEM ?

 Thanks for any help


 ___
 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] Opening xyz file /DEM in Paraview

2013-04-15 Thread Aashish Chaudhary
Is it ASCII gridded XYZ format?  If yes hopefully by the end of this week I
will have a GDAL based raster reader to read this format but it won;'t make
it to VTK 6 release because of time constraint.

Thanks,





On Mon, Apr 15, 2013 at 10:25 AM, Berk Geveci berk.gev...@kitware.comwrote:

 If you actually have data in DEM format (
 http://en.wikipedia.org/wiki/USGS_DEM), you can open it in ParaView by
 simply adding a .dem extension to the file. I am not sure if this is the
 case though. .xyz is a pretty common extension so it is hard for us to help
 without knowing specifics.

 If you load in a set of points with csv reader, you can use one of the
 Delaunay filters to mesh them.

 Best,
 -berk


 On Mon, Apr 15, 2013 at 10:07 AM, Hedieh Ebrahimi 
 hedieh.ebrah...@amphos21.com wrote:

 Hello all,

 I have a Dataset with .xyz extension. I couldn´t open it in Paraview, so
 I converted the file to .csv

 now I have a dataset with 3 arrays corresponding to x, y and z
 co-ordinates.

 I used the Table to Points filter and I converted the my coordinates to
 points.


 Could anybody please tell me how I can open .xyz or .xyz.dat or .dat in
 Paraview to represent Digital Elevation Model?

 Second, If I am importing csv. files in to paraview, what can i do to get
 some kind of grid out of these points to better represent the geometry that
 I was planning to show using the DEM ?

 Thanks for any help


 ___
 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




-- 
| Aashish Chaudhary
| RD Engineer
| Kitware Inc.
| www.kitware.com
___
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 Filter from Text Source prevents loading saved state

2013-04-15 Thread Michael Garba
I am attempting to create a custom reader in pure Python by attaching a 
ProgrammableFilter to a Text source that provides file names and other 
input parameters in JSON syntax. When the output type of the 
programmable filter is set to a vtkRectilinearGrid (apparently anything 
other than the original vtkTable input), Paraview throws the following 
error multiple times


 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, 


 line 389
 vtkPVSessionCore (0x93ab660): Object type: vtkCubeAxesRepresentation,
 could not find requested method: SetOrientation
 or the method was called with incorrect arguments.

 while processing
 Message 0 = Invoke
   Argument 0 = vtk_object_pointer {vtkCubeAxesRepresentation (0xa715620)}
   Argument 1 = string_value {SetOrientation}
   Argument 2 = float64_value {0}



 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, 


 line 390
 vtkPVSessionCore (0x93ab660): Aborting execution for debugging purposes.


 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, 


 line 131
 vtkSISourceProxy (0xa7142e0): Error pushing property state: Orientation


 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, 


 line 389
 vtkPVSessionCore (0x93ab660): Object type: vtkGlyph3DRepresentation,
 could not find requested method: SetOrientation
 or the method was called with incorrect arguments.

 while processing
 Message 0 = Invoke
   Argument 0 = vtk_object_pointer {vtkGlyph3DRepresentation (0xa81e6e0)}
   Argument 1 = string_value {SetOrientation}
   Argument 2 = float64_value {0}



 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, 


 line 390
 vtkPVSessionCore (0x93ab660): Aborting execution for debugging purposes.


 ERROR: In
 
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, 


 line 131
 vtkSISourceProxy (0xa81b238): Error pushing property state: Orientation


The data is successfully loaded and, for the rest of the session, there 
are no further errors. However, the application exits with a 
segmentation fault and core dump when I attempt to load any saved 
Paraview state files based on this pipeline. Any insights into this 
problem will be appreciated.


Regards,

Michael Garba
IDEAS Research Institute
Robert Gordon University
Aberdeen
AB10 7GJ

___
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] Selected proxy value not in the list: Arrow

2013-04-15 Thread Сергей Дмитриев

Sorry for my English.

Сould you tell me - what kind of activity can cause such mistake?
___
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] pvpython WriteImage output corrupted

2013-04-15 Thread Taylor, Erin M.
Today I reinstalled a local version of OSMesa (7.8.2) and rebuilt ParaView
pointing to this new installation of OSMesa, and the rendering output
using on-screen rendering (X) from WriteImage now works!  There must have
been a conflict with versions of GL files (?) that was causing corrupted
output.  

On the other hand, when I try to use off-screen rendering, the script
still bombs, but has the error:

pvbatch: main/renderbuffer.c:1924: _mesa_add_renderbuffer: Assertion
'bufferName == BUFFER_DEPTH || bufferName == BUFFER_STENCIL ||
fb-Attachment[bufferName].Renderbuffer == ((void *)0)' failed.

This is an improvement that I can get some WriteImage() output to save
properly now, but I would in the end like to be able to get off-screen
rendering to work in order to run the script in a non X environment.

Thanks,
Erin



On 4/15/13 10:17 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

For what it's worth, I've isolated the seg fault for off screen rendering
using pdb.

I call pvbatch --use-offscreen-rendering simpleTest.py  (I have paraview
built using OSMesa support)

And pdb shows the seg fault during Render() is coming from
servermanager.py(346)__ConvertArgumentsAndCall()
retVal = func(*newArgs)

The simpleTest.py script contains the following:

from paraview.simple import *
import pdb
s = sphere()
Show(s)
pdb.set_trace()
Render()
WriteImage(testimage.png)



Erin




On 4/15/13 9:30 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

I have tried setting the view.UseOffscreenRendringForScreenshots to 0
with
no luck.  Still the same corrupted image output.

And I am making a series of images in a loop also.  I am updating the
same
view, however, not deleting and recreating a new one.  I wonder if that
would work.

Also, in the last few days I've built paraview from source with OSMesa
support and tried using offscreen rendering, but that results in a seg
fault at Render().  I must not have it set up properly.  I followed the
instructions for build with OSMesa support, and it compiled and built
successfully, but haven't had luck getting the script to run with
offscreen rendering yet.

Erin




On 4/15/13 9:19 AM, Masquelet, Matthieu (GE Global Research)
masque...@ge.com wrote:

That does not seem to help. On the other hand, I've personally had
success by adding a pause (time.sleep(0.5)) in my loop after each
Delete(view). Does that help you pinpoint the issue? Note that I use
on-screen rendering regardless as I cannot build paraview with OpenMesa
on my system at this point.

Thanks in advance,

Matthieu

-Original Message-
From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Friday, April 12, 2013 6:38 PM
To: Masquelet, Matthieu (GE Global Research)
Cc: Taylor, Erin M.; ParaView
Subject: Re: [Paraview] pvpython WriteImage output corrupted

I wonder if has something to do with the offscreen rendering. Try the
following before Writeimage():

view.UseOffscreenRenderingForScreenshots = 0

Does that help?

Utkarsh


On Thu, Apr 11, 2013 at 2:37 PM, Masquelet, Matthieu (GE Global
Research) masque...@ge.com wrote:
 I have experienced similar issues to a lesser level. Say if I'm
looping
over 20 files to generate snapshots for a movie, sometimes, 1 or 2 of
these will be corrupted in a fashion similar to what is reported here.
Also using 3.98.1 on Linux 64-bit, writing png files.

 Hope this helps,

 Matthieu

 -Original Message-
 From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Taylor, Erin M.
 Sent: Thursday, April 11, 2013 11:11 AM
 To: Taylor, Erin M.; ParaView
 Subject: Re: [Paraview] pvpython WriteImage output corrupted

 I should also add that I can output images from the ParaView GUI in
the
linux machine with no problems.  It's just pvpython WriteImage output
that is corrupted.



 On 4/11/13 11:08 AM, Taylor, Erin M. erin.tay...@jhuapl.edu wrote:

Hi all,

I have a pvpython script that I've been developing and running
successfully on Mac OSX 10.6.8.  It renders a csv data set as points,
then
saves an image to file.It basically boils down to this:

cr = CSVReader()
cr.FileName = filename
cr.UpdatePipeline()
tp = TableToPoints(cr)
tp.XColumn = 'x'
tp.YColumn = 'y'
tp.ZColumn = 'z'
tp.UpdatePipeline()

Render()
view = GetRenderView()
WriteImage(image_path, view, Magnification = 2)


This works on the mac using pvpython.  However when I try to run the
same script on a 64 bit linux machine (same version of paraview,
3.98.1), the image that is output from WriteImage is corrupted.  By
that I mean the image is a mess of black and white noise.  Sometimes
the images have a portion of the script output rendered correctly in a
tile of the image.  I should note that the image is rendered properly
in the view window on this linux machine, it is just the saved output
that is corrupted.  I have tried .png and .jpg image output with the
same result.

I appreciate any ideas anyone might have on the cause of this!

Many thanks,

Erin



Re: [Paraview] collaboration multi-clients

2013-04-15 Thread Сергей Дмитриев

I solve same problem with edit collaboration.py file. Like this:

...

from vtkPVClientServerCoreCorePython import *
from vtkPVClientServerCoreDefaultPython import *
from vtkPVServerImplementationCorePython import *
from vtkPVServerImplementationDefaultPython import *
from vtkPVServerManagerCorePython import *
from vtkPVServerManagerDefaultPython import *
from vtkPVCommonPython import *

...

Hello folks

what is the status of the multi-clients support in 3.98?

I have tried different hosts, different setups and it always results in crashes,
seg faults. I wanted to know if this is related to my setup, or some known
issues.?

The wiki page http://paraview.org/Wiki/ParaView/Collaboration relates to version
3.12, so I don't know how up-to-date that is.

most of my tries are with one server, and two paraview clients (one on the same
host as server, one remote).

Also with the pvpython client, the import command fails.

from paraview.collaboration import * Traceback (most recent call last): File
stdin, line 1, in module File
/local1/apps/ParaView-3.98.0Build/lib/site-packages/paraview/collaboration.py,
line 29, in module from vtkPVClientServerCorePython import * ImportError: No
module named vtkPVClientServerCorePython

- Jean CSCS

___ 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] Packaging ParaView

2013-04-15 Thread Reuter, Michael A.
Hi,

I'm trying to package ParaView with our build options, but it looks like the 
CPackParaViewConfig.cmake file is no longer available in 3.98.1, unless I 
missed a CMake variable. I've been looking at two ways to handle this: 
superbuild and rebranding. I really don't need to rebrand ParaView, as we 
aren't wrapping in any new functionality. So, I was thinking of going with the 
superbuild. Can the superbuild be made to only package ParaView provided 
libraries and plugins? Our analysis package which uses ParaView functionality 
already provides many of the same dependencies (Qt, HDF) and we build ParaView 
against these. Therefore, we don't need to duplicate them in the installation 
package.

Thanks,
M

Dr. Michael Reuter
Data Analysis and Visualization Group
Neutron Data Analysis and Visualization Division
Oak Ridge National Laboratory

Office: 1-865-241-7216
Fax: 1-865-574-6080
Email: reute...@ornl.gov
___
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] How to display the cellNormals as vectors?

2013-04-15 Thread Pieter Barendrecht
Hi all,

I have just imported a 3D parametric surface in Paraview (from a .VTU file 
generated by a Python script), and I'm wondering how to display the cellNormals 
as actual vectors. Since a cellNormal has an X, Y and Z component, it should be 
possible to use these three scalar values to create a vector, pointing from the 
corresponding cell. 

I know I can create a vector field with the Glyph function, but I'm not sure 
how to continue from there. I cannot select any Scalars or Vectors from the two 
dropdown menus/lists (they are enabled but there is nothing to select).

Any ideas on how to proceed would be very welcome! 

Best,
Pieter

PS: I'm using Paraview 3.98.1 on a Linux machine.
___
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] How to display the cellNormals as vectors?

2013-04-15 Thread Berk Geveci
Does the file actually contain normals? I am guessing not. In that case, do:

Extract Surface
Generate Surface Normals
Glyph

If you had a vtp file (polydata) instead of vtu (unstructured grid), you
wouldn't need to Extract Surface.

-berk


On Mon, Apr 15, 2013 at 7:27 PM, Pieter Barendrecht pie...@redpanda.nlwrote:

 Hi all,

 I have just imported a 3D parametric surface in Paraview (from a .VTU file
 generated by a Python script), and I'm wondering how to display the
 cellNormals as actual vectors. Since a cellNormal has an X, Y and Z
 component, it should be possible to use these three scalar values to create
 a vector, pointing from the corresponding cell.

 I know I can create a vector field with the Glyph function, but I'm not
 sure how to continue from there. I cannot select any Scalars or Vectors
 from the two dropdown menus/lists (they are enabled but there is nothing to
 select).

 Any ideas on how to proceed would be very welcome!

 Best,
 Pieter

 PS: I'm using Paraview 3.98.1 on a Linux machine.
 ___
 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] How to display the cellNormals as vectors?

2013-04-15 Thread Pat Marion
ParaView does a weird thing, in the Color By drop down menu, it show an
array named cellNormals but this array doesn't actually exist on the data
object, and it doesn't appear in the information tab.  So, as Berk said,
you should apply the Generate Surface Normals filter, and make sure you
check the Compute Cell Normals check box.  Then you can use the Cell
Centers to generate point data at the cell centers.  Then you can use the
Glyph filter to draw the arrows for the cell normals.

Pat


On Tue, Apr 16, 2013 at 10:03 AM, Berk Geveci berk.gev...@kitware.comwrote:

 Does the file actually contain normals? I am guessing not. In that case,
 do:

 Extract Surface
 Generate Surface Normals
 Glyph

 If you had a vtp file (polydata) instead of vtu (unstructured grid), you
 wouldn't need to Extract Surface.

 -berk


 On Mon, Apr 15, 2013 at 7:27 PM, Pieter Barendrecht pie...@redpanda.nlwrote:

 Hi all,

 I have just imported a 3D parametric surface in Paraview (from a .VTU
 file generated by a Python script), and I'm wondering how to display the
 cellNormals as actual vectors. Since a cellNormal has an X, Y and Z
 component, it should be possible to use these three scalar values to create
 a vector, pointing from the corresponding cell.

 I know I can create a vector field with the Glyph function, but I'm not
 sure how to continue from there. I cannot select any Scalars or Vectors
 from the two dropdown menus/lists (they are enabled but there is nothing to
 select).

 Any ideas on how to proceed would be very welcome!

 Best,
 Pieter

 PS: I'm using Paraview 3.98.1 on a Linux machine.
 ___
 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] writing volume to stl as topology

2013-04-15 Thread David Thompson
Hi Dmitry,

 I have a tetrahedral mesh in vtk unstructured grid. How can I write this 
 volume to stl (not just the surface) like a set of separated triangles? 
 Paraview display my data as a surface. Here is some screenshots of my model 
 and clipped model. My goal is just to handle this topology and then print it 
 by 3D printer.

The STL format only accepts triangles, not tetrahedra or other volumetric 
elements. Your 3D printer software will infer what regions are inside and 
outside the surface as long as the surface is manifold (i.e., a closed, 
orientable surface that is watertight). If you have a model that is not 
watertight, you can try using ParaView's Clean filter to fix it.

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