Re: [Paraview] Write and read a vtk file (in python)

2010-06-07 Thread Jérôme Plumecoq
Hello, thank you very much ! Do you know if is possible to write directly a reader in python ? Or is it only possible in C++ ? Jérôme Le 04/06/2010 15:37, Utkarsh Ayachit a écrit : There was a bug in OpenDataFile() that was fixed a few days ago (May 26) that is causing that "AttributeE

Re: [Paraview] Write and read a vtk file (in python)

2010-06-07 Thread Jérôme Plumecoq
Hello, it doesn't fix the problem for me, but perhaps it is because I don't use version 4.6 of Qt... But if I set the locale in the python script before writing the vtk file in ASCII, it works fine. Thank you ! Jérôme Le 04/06/2010 16:15, Utkarsh Ayachit a écrit : I've committed a fix.

Re: [Paraview] Write and read a vtk file (in python)

2010-06-07 Thread Eric E. Monson
Hey Jérôme, Yes, you can use the Python Programmable Source as a reader. There are some examples on these two pages, in case you haven't seen them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters http://www.paraview.org/Wiki/Python_Programmable_Filter

[Paraview] pvpython & numpy

2010-06-07 Thread Aurélien Marsan
Good Morning, At this time, when I want to use the numpy library with pvpython, I build using the same version of python than pvpython. Is there an easier way ? Especially : is it possible to build new libraries directly with pvpython ? When I try, I have this error : > Running from numpy sourc

Re: [Paraview] Particle tracer: output particle coordinates for every time step to file?

2010-06-07 Thread Florian Rathgeber
Hi, Thank you, that works, but gives me lots of data I don't actually need. I would rather have something more concise. Is anybody more familiar with the particle tracer and can tell what this particle writing is supposed to do and how to get it to work? Florian On 04.06.2010 23:03, Andy Bauer

Re: [Paraview] Particle tracer: output particle coordinates for every time step to file?

2010-06-07 Thread Biddiscombe, John A.
I added the particle writing as a "stub" so that the user can define his own writing class. simply create a writer sub-classed from vtkAbstractParticleWriter http://www.vtk.org/doc/nightly/html/classvtkAbstractParticleWriter.html override the WriteData function, and add it to your build, then se

[Paraview] PV 3.8.0 mesh modification

2010-06-07 Thread Stephen Wornom
I have a mesh, I would like to refine it in a region (for example the wake behind a cylinder or a sphere). I can refine the mesh using PV (sub divide). Questions: 1- How can I choose a region where I want to subdivide? 2- Once subdivided, how do I save the new mesh? 3- What formats are available

[Paraview] Custom External Libraries built with ParaView

2010-06-07 Thread Eric Nodwell
I'm having some linking issues building our custom external libraries into ParaView. The background is, we have the following: 1. a custom library (vtkskiIO) , and 2. some ParaView plugins that use classes out of vtkskiIO . These can be built, loaded and run successfully when they are built not

Re: [Paraview] Custom External Libraries built with ParaView

2010-06-07 Thread Michael Jackson
SET (PARAVIEW_ADDITIONAL_LIBRARIES ${PARAVIEW_ADDITIONAL_LIBRARIES} libvtkskiIO ) ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [Paraview] Custom External Libraries built with ParaView

2010-06-07 Thread Eric Nodwell
Thanks Michael. That did it - well 90% of it. The other 10% was also adding a PARAVIEW_FILTERS_INCLUDE_DIRECTORIES command to specify the directory with .h files for our plugins. Eric On 2010-06-07, at 11:21 AM, Michael Jackson wrote: > SET (PARAVIEW_ADDITIONAL_LIBRARIES >${PARAVIEW_ADDI