Re: [Paraview] export Python script?
Pat, That did indeed work. Thanks! -Randy On Apr 7, 2010, at 10:21 PM, pat marion wrote: Ah, the trace state feature was added just after 3.6.2. Since trace is implemented completely in python, it is possible to grab smtrace.py and smstate.py from paraview's cvshead, and then run it from the python console: import paraview.smstate as st st.run() st.smtrace.save_trace(output.py) It's possible some other python api changed that will prevent this from working, but if you can't wait for the 3.8 release, it might be worth giving a shot. downloads- http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Utilities/VTKPythonWrapping/paraview/smstate.py?revision=1.5root=ParaView3 http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Utilities/VTKPythonWrapping/paraview/smtrace.py?revision=1.19root=ParaView3 Pat On Wed, Apr 7, 2010 at 9:47 PM, Randy Heiland heil...@indiana.edu wrote: Thanks Pat. But I'm not seeing 'Trace State' there - just Start/Stop/Show/Edit/Save Trace. I'm using 3.6.2 (binary). On Apr 7, 2010, at 9:39 PM, pat marion wrote: Yes, it is possible. You'll want to use the python trace functionality. When you're ready to save the state, open the python console, switch to the trace tab, and click 'Trace State'. Then click 'Save Trace'. Here are some more details- http://www.cmake.org/Wiki/Python_GUI_Tools Pat On Wed, Apr 7, 2010 at 9:10 PM, Randy Heiland heil...@indiana.edu wrote: I'm guessing the answer is no (and I couldn't find anything online), but I'll ask anyway - is it possible to export/generate a Python script from a ParaView session/state? thanks, Randy ___ 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] Paraview 3.8 binaries
Hello! I read on the news of April 5 that Paraview 3.8 binaries and sources are available: Kitware, Sandia National Laboratories and Los Alamos National Laboratory are proud to announce the release of ParaView 3.8. The binaries and sources are available for download from the ParaView website. But the latest binaries found on the download page are those of the PV 3.6.2 release! Is the PV 3.8 release available elsewhere or is it delayed? Best regards. -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Paraview 3.8 binaries
Richard, We are currently working on the binaries. We'll be sending announcements to the mailing list as the release candidates and the final release is built. Utkarsh On Thu, Apr 8, 2010 at 6:57 AM, Richard GRENON richard.gre...@onera.fr wrote: Hello! I read on the news of April 5 that Paraview 3.8 binaries and sources are available: Kitware, Sandia National Laboratories and Los Alamos National Laboratory are proud to announce the release of ParaView 3.8. The binaries and sources are available for download from the ParaView website. But the latest binaries found on the download page are those of the PV 3.6.2 release! Is the PV 3.8 release available elsewhere or is it delayed? Best regards. -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Paraview 3.8 binaries
The ParaView 3.8 branch was created April 5th. The Release announcement is probably a little premature :-p. Though you can checkout the 3.8 branch and build it yourself. I hope to have ParaView 3.8 release candidate binaries available for download by Friday/Monday and then final binaries shortly after. On Thu, Apr 8, 2010 at 6:57 AM, Richard GRENON richard.gre...@onera.frwrote: Hello! I read on the news of April 5 that Paraview 3.8 binaries and sources are available: Kitware, Sandia National Laboratories and Los Alamos National Laboratory are proud to announce the release of ParaView 3.8. The binaries and sources are available for download from the ParaView website. But the latest binaries found on the download page are those of the PV 3.6.2 release! Is the PV 3.8 release available elsewhere or is it delayed? Best regards. -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] running paraview from deb package
Hello, I'm trying to run paraview from deb package and when I run it, the window opens then vanishes and I've got the following error : ERROR: In /home/forella/Debian/build-area/paraview-3.6.2/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 405 vtkXOpenGLRenderWindow (0x25427f0): Could not find a decent visual ERROR: In /home/forella/Debian/build-area/paraview-3.6.2/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 405 vtkXOpenGLRenderWindow (0x25427f0): Could not find a decent visual X Error: BadValue (integer parameter out of range for operation) 2 Extension:158 (Uknown extension) Minor opcode: 3 (Unknown request) Resource id: 0x23 ERROR: In /home/forella/Debian/build-area/paraview-3.6.2/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 632 vtkXOpenGLRenderWindow (0x25427f0): Cannot create GLX context. Aborting. What's the problem? Thank you for your help, Regards, ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Paraview 3.8 binaries
Utkarsh Ayachit wrote: Richard, We are currently working on the binaries. We'll be sending announcements to the mailing list as the release candidates and the final release is built. Utkarsh Utkarsh. Thank you for these good news. I will check the mailing list. Best regards. -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Plotting an isosurface at two different density values from a standard gaussian CUBE file
On Thu, Apr 8, 2010 at 10:23 AM, Simon Su newsgroup4...@gmail.com wrote: Hi All, I am very new to CUBE data format. If I have a standard gaussian cube file which contains information of lattices, position of atoms and a spin-density. How can I plot iso surfaces at density value =0.008 and -0.008? Thank you, Simon Hi, You can load the cube file, apply, select gridded data in the pipeline browser, then go to filters, common, contour and specify the value ranges in the properties isosurfaces pane. Then click apply and you will see the isosurfaces. You can also glyph the Output in the pipeline browser to see the atoms. I hope this gets you started - there is lots more that you can do in ParaView with the data. Marcus -- Marcus D. Hanwell, Ph.D. RD Engineer, Kitware Inc. (518) 881-4937 ___ 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] questions re VTK-formatted file
I have some questions related to a specific datafile format (simple example below). Q1: what exactly is displayed by default when this file is opened? Q2: I can't seem to use a Contour filter on the data - is the format of the file causing problems or something else? Q3: how does one force output results to go to an existing window, rather than opening a new one? Here's a link with the same questions and some accompanying pics: http://www.compucell3d.org/mediawiki1.7/index.php/Pv_simple thanks, Randy # vtk DataFile Version 3.0 silly data ASCII DATASET STRUCTURED_POINTS DIMENSIONS 3 3 1 SPACING 1 1 1 ORIGIN 0 0 0 POINT_DATA 9 FIELD FieldData 2 foo 1 9 float 3 3 3 3 1 3 3 3 3 bar 1 9 float 4 4 4 5 5 5 6 6 6 ___ 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] Plotting an isosurface at two different density values from a standard gaussian CUBE file
Hi Marcus, Great!! Awesome. This is probably the most effortless visualization that I have created for my user base. I was getting ready to write a loader for it when I was approached with a CUBE data format. You mentioned I can do a lot more with ParaView, is there like a manual to help guide me through? other than bugging you for it? Thanks, Simon On Thu, Apr 8, 2010 at 11:10 AM, Marcus D. Hanwell marcus.hanw...@kitware.com wrote: On Thu, Apr 8, 2010 at 10:23 AM, Simon Su newsgroup4...@gmail.com wrote: Hi All, I am very new to CUBE data format. If I have a standard gaussian cube file which contains information of lattices, position of atoms and a spin-density. How can I plot iso surfaces at density value =0.008 and -0.008? Thank you, Simon Hi, You can load the cube file, apply, select gridded data in the pipeline browser, then go to filters, common, contour and specify the value ranges in the properties isosurfaces pane. Then click apply and you will see the isosurfaces. You can also glyph the Output in the pipeline browser to see the atoms. I hope this gets you started - there is lots more that you can do in ParaView with the data. Marcus -- Marcus D. Hanwell, Ph.D. RD Engineer, Kitware Inc. (518) 881-4937 ___ 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] pvbatch offscreen rendering problems
The patch seems to have resolved the issue related to the DISPLAY variable. Thanks! Utkarsh Ayachit wrote: Looks like the patch should resolve this issue. I've committed it to CVS. Let me know if that doesn't work. We'll commit it to 3.8 branch soon. Utkarsh On Wed, Apr 7, 2010 at 2:20 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Rick/ Carrie, My paraview is still building and will be a while before I can try this out. But attached is a patch that I think will solve this issue. Can you try it out? Thanks Utkarsh On Wed, Apr 7, 2010 at 2:15 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: I was writing a response when it struck me, are you building with PARAVIEW_BUILD_QT_GUI ON? That's possible the only difference between your build and mine. I am going to turn on PARAVIEW_BUILD_QT_GUI and try to reproduce the problem. Utkarsh On Wed, Apr 7, 2010 at 2:06 PM, Rick Angelini rick.angel...@us.army.mil wrote: So, we're really stumped. - Paraview (pvbatch) 3.6.2 works exactly as we'd expect. - pvbatch 3.8.0/3.9.0 fail with the can't open display error. If we set a display variable, pvbatch works, but that's not really a solution. - All three are using the same exact Mesa library and use the same CMakeInit file during the build. - We've also built by hand (without a CMakeInit file) and get the same error. - See the same display error when running pvbatch serially Not really sure where to turn. Utkarsh Ayachit wrote: That's exactly what I am doing as well (unset DISPLAY that is), and seems to work well. Is this a debug build. Can you track down where the error message is coming from? I am not sure where this error message is coming from since it doesn't look like a paraview message and a quick grep didn't yield any result. When paraview spews a display error, it looks something as follows: Process id: 0 ERROR: In /home/utkarsh/Kitware/ParaView3/ParaView3/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 542 vtkXOpenGLRenderWindow (0x3be47e0): bad X server connection. DISPLAY=Process id: 0 ERROR: In /home/utkarsh/Kitware/ParaView3/ParaView3/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 344 vtkXOpenGLRenderWindow (0x3be47e0): bad X server connection. DISPLAY=p0_29057: Also make sure that OSMESA_INCLUDE_DIR, and OSMESA_LIBRARY are set correctly. Just for consistency sake, set the following to default values: VTK_USE_OFFSCREEN=OFF VTK_USE_DISPLAY=ON These need not be changed at all for using OS mesa in ParaView. Utkarsh On Wed, Apr 7, 2010 at 1:09 PM, Carrie E. Spear (Cont, CISD/ARL) carrie.sp...@arl.army.mil wrote: Utkarsh, When I do an ldd pvbatch appears to be using the correct libraries GL libraries (I am building agains mesa-7.0.4, could it be that my version of mesa is too old). I ran the following test: bash-3.2$ echo $DISPLAY :0.0 bash-3.2$ unset DISPLAY bash-3.2$ echo $DISPLAY bash-3.2$ mpirun -np 4 pvbatch --use-offscreen-rendering testParallelRender.py : cannot connect to X server -- mpirun has exited due to process rank 0 with PID 4770 on node ls08270-l.arl.army.mil exiting without calling finalize. This may have caused other processes in the application to be terminated by signals sent by mpirun (as reported here). -- When I have DISPLAY set it works perfectly. Thanks, Carrie Utkarsh Ayachit wrote: Carrie, I just tried it with CVS ParaView and I could not reproduce it. Can you reproduce this when running on a single node? Try running ldd on pvbatch, is it getting the right OpenGL libraries? Utkarsh On Wed, Apr 7, 2010 at 9:40 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: That sounds fishy, let me take a look. I'll get back to you. Utkarsh On Wed, Apr 7, 2010 at 8:06 AM, Carrie E. Spear (Cont, CISD/ARL) carrie.sp...@arl.army.mil wrote: Good Morning, I am currently having issues with paraview-3.8.0 and paraview-3.9.0 when trying to use pvbatch and offscreen rendering. When I run with my DISPLAY variable set, I don't have any issues, when the DISPLAY variable is not set it fails with the cannot connect to X server error. I have built paraview with the following flags to support the offscreen rendering capabilities: OPENGL_INCLUDE_DIR OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY OPENGL_xmesa_INCLUDE_DIR OSMESA_INCLUDE_DIR OSMESA_LIBRARY VTK_OPENGL_HAS_OSMESA=ON VTK_USE_OFFSCREEN=ON VTK_USE_DISPLAY=OFF I have built paraview-3.6.2 with these flags and the pvbatch offscreen rendering works perfectly without the DISPLAY variable being set, the same does not work for 3.8.0 and 3.9.0. Am I missing a new flag for these packages? The mesa version I am using is 7.0.4. The pvbatch command I am running is: mpirun -np 4 pvbatch --use-offscreen-rendering testParallelRender.py Thanks in advance for your help, Carrie --
Re: [Paraview] questions re VTK-formatted file
For the color map question you asked inside your link, maybe you could double check the colormap you created. Paraview's colormap editor can be a bit touchy, and it's easy to accidentally add extra points. When I tried your example data, it correctly colored the point with scalar value 1 using the default color map. Try running clean-to-grid filter before you run the contour filter. Clean to grid will convert the image data to unstructured grid data. The contour filter will work after that. Maybe someone else can tell you why it doesn't work without conversion. Paraview is being clever, and displaying your data by default in a 2D View. The output of the contour filter is displayed in the 3D view, so that's why a new view pops open. After you open your data, you can right-click the area above the render view and choose Covert To in the context menu to convert the 2D view to a 3D view. Pat On Thu, Apr 8, 2010 at 11:18 AM, Randy Heiland heil...@indiana.edu wrote: I have some questions related to a specific datafile format (simple example below). Q1: what exactly is displayed by default when this file is opened? Q2: I can't seem to use a Contour filter on the data - is the format of the file causing problems or something else? Q3: how does one force output results to go to an existing window, rather than opening a new one? Here's a link with the same questions and some accompanying pics: http://www.compucell3d.org/mediawiki1.7/index.php/Pv_simple thanks, Randy # vtk DataFile Version 3.0 silly data ASCII DATASET STRUCTURED_POINTS DIMENSIONS 3 3 1 SPACING 1 1 1 ORIGIN 0 0 0 POINT_DATA 9 FIELD FieldData 2 foo 1 9 float 3 3 3 3 1 3 3 3 3 bar 1 9 float 4 4 4 5 5 5 6 6 6 ___ 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] Installing ParaView libraries with my app
Hello all, I have an app that is dependent on ParaView, so I need to install the ParaView libraries along with my application. I am, of course, using CMake and CPack. Is there an easy way to do this, or do I need to call install() for each of the libraries my app depends on? Thanks, Ben ___ 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] Installing ParaView libraries with my app
There are ways to include ParaView libraries in your package. Take a look at the following Wiki page for details: http://www.paraview.org/Wiki/Writing_Custom_Applications#Packaging Utkarsh On Thu, Apr 8, 2010 at 8:28 PM, Ben Medina ben.med...@gmail.com wrote: Hello all, I have an app that is dependent on ParaView, so I need to install the ParaView libraries along with my application. I am, of course, using CMake and CPack. Is there an easy way to do this, or do I need to call install() for each of the libraries my app depends on? Thanks, Ben ___ 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