Re: [Paraview] Programmable Source MultiBlockDataSet

2010-06-10 Thread Jérôme Plumecoq
Hello, I also would like to make a ProgrammableSource with a vtkMultiBlockDataSet as output type (*). It seems that the correction indicated below doesn't appear in the version 3.8.0 of ParaView. do you know in which version this change will be integrate ? does a patch exist ? thanks.

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-06-10 Thread Utkarsh Ayachit
Attached is the patch. It will be included in 3.8.1 release. Utkarsh 2010/6/10 Jérôme Plumecoq jerome.plume...@c-s.fr: Hello, I also would like to make a ProgrammableSource with a vtkMultiBlockDataSet as output type (*). It seems that the correction indicated below doesn't appear in the

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-06-10 Thread Aurélien Marsan
great ! But I never used patches. How do we apply it ? 2010/6/10 Utkarsh Ayachit utkarsh.ayac...@kitware.com Attached is the patch. It will be included in 3.8.1 release. Utkarsh 2010/6/10 Jérôme Plumecoq jerome.plume...@c-s.fr: Hello, I also would like to make a

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-06-10 Thread Aurélien Marsan
I found it. In the source, before compiling. ... Le 10 juin 2010 18:03, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fra écrit : great ! But I never used patches. How do we apply it ? 2010/6/10 Utkarsh Ayachit utkarsh.ayac...@kitware.com Attached is the patch. It will be included

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-26 Thread Aurélien Marsan
Thank for this example. But I'm trying to apply this to my case, and have one question again . :-| # TODO: Generate the data as you want. --- That should be the DataSet at one timestep ? How does the programmable source handle the change of the filename to read ? Should I use a command

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-26 Thread Aurélien Marsan
... I answer myself : I have to use the req_timestep variable, and do something like ModulePerso.ReadMultiBlockFromV3D(*'filename%s'%(req_timestep)*) If that could help other people, there is on the internet a presentation that explains quite well how time is managed in Paraview, especially

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
Maybe I have found a way to avoid the Programmable Source... But Is it possible to export an object created in the python shell directly into the pipeline of the paraview interface ? Le 22 avril 2010 15:36, Aurélien Marsan aur.mar...@gmail.com a écrit : Hi, A new thing I don't know how to do

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
I found a solution to do what I wanted to do. Not really elegant, but it works. The best would be to encode the reader in the source code but I don't know how to do, and have no time for now. First, I use the tool Source - Data Object Generator, and create a MultiBlockDataSet. MB{} Then,

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
I've just committed a change to ParaView to allow setting output type to be a multiblock dataset. Commit id: c7472789ba86210e190f398a90eebc081a66d40c Utkarsh 2010/4/23 Aurélien Marsan aur.mar...@gmail.com: I found a solution to do what I wanted to do. Not really elegant, but it works. The

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
Temporal DataSet! Filters shouldn't be producing temporal dataset explicitly. Why do you need it? Utkarsh 2010/4/23 Aurélien Marsan aur.mar...@gmail.com: thanks ! And so, could you add Temporal Data Set to this commit ? Le 23 avril 2010 16:28, Utkarsh Ayachit utkarsh.ayac...@kitware.com a

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
ah So : I use file in format v3d. For a mesh that contains two blocks, they would be called called block1_timestep1.v3d, block2_timestep1.v3d, block1_timestep2.v3d, block2_timestep2.v3d, etc... Actually, I open these v3d_files with a python tool that I have writen, translate them as

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
Yet I understand why it's not possible to work with TemporalDataSet in Paraview. The output of the PVDReader is a MultiBlockDataSet, and the PVDReader redirect the reader based on the time value. ... Is it possible to create a programmable source that would be aware of the timestep ? Or do I have

Re: [Paraview] Programmable Source MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
I've added an example to the Wiki showing how to produce timesteps from programmable source. http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29 There's one caveat currently. The GUI does not realize the

[Paraview] Programmable Source MultiBlockDataSet

2010-04-22 Thread Aurélien Marsan
Hi, A new thing I don't know how to do with Paraview. I have written a personnal reader, that creates vtkStructuredGrid from files written in so called format v3d. So I'm able to construct a MutliBlockDataSet, that is composed of all the Blocks I'm working with. I would like to use Programmable