[Paraview] VTK classes not found in paraview

2017-05-17 Thread Vogel Dorian
Hello all, Based on http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData, I am converting polyData surfaces into vtkImage. Now that the process is stable, I would like to integrate the python script created in a paraview pipeline (first as a programmable filter). However, ma

Re: [Paraview] VTK classes not found in paraview

2017-05-17 Thread Mathieu Westphal
Hello This class is present in the last master of paraview with updated submodules : paraview/VTK/Imaging/Stencil/vtkPolyDataToImageStencil.cxx Regards, Mathieu Westphal On Wed, May 17, 2017 at 2:52 PM, Vogel Dorian wrote: > Hello all, > > Based on http://www.vtk.org/Wiki/VTK/Examples/Cxx/Pol

Re: [Paraview] VTK classes not found in paraview

2017-05-17 Thread Cory Quammen
Mathieu, The file is indeed present, but ParaView is not building VTK's ImagingStencil module by default, and it is not available in the official binary. Dorian, If you are building ParaView, turn ON the advanced VTK_Group_Imaging makes vtkPolyDataToImageStencil available in Python scripting. R

Re: [Paraview] VTK classes not found in paraview

2017-05-17 Thread Vogel Dorian
Alright ! Thanks for the help. Regards, Dorian -Original Message- From: Cory Quammen [mailto:cory.quam...@kitware.com] Sent: 17 May 2017 16:02 To: Vogel Dorian; Rustem Khabetdinov Cc: paraview@paraview.org Subject: Re: [Paraview] VTK classes not found in paraview Mathieu, The file is

Re: [Paraview] VTK classes not found in paraview

2017-05-18 Thread Vogel Dorian
Hi again, When using classes from the VTK_Group_Imaging in a programmable filter, I am having serious issues getting the data back from the filter. I have setup a simple pipeline to demonstrate the issue: gist.github.com : polyData2vtkImageData.pvsm

Re: [Paraview] VTK classes not found in paraview

2017-05-18 Thread Favre Jean
Dorian it is a frequent error to forget to set the RequestInformationScript of the ProgrammableFilter. I have quickly hacked your code to make it work and give it here as an example to be polished further. try to load the following python script. - Jean/CSCS from paraview.simpl

Re: [Paraview] VTK classes not found in paraview

2017-05-18 Thread Vogel Dorian
Jean, I did not know about the RequestInformationScript, thank you very much. I also discovered that it can be set through the GUI thanks to the cog in the 'Properties' panel. Best, -- Dorian Vogel On Thursday, May 18, 2017 2:53:17 PM CEST Favre Jean wrote: Dorian it is a frequent error

Re: [Paraview] VTK classes not found in paraview

2017-05-23 Thread Vogel Dorian
Hello again, I still have one issue remaining that I couldn't solve: I added the RequestInformation Sript to my programmable filter, which dynamically sets the WHOLE_EXTENT attribute so that it corresponds to the extent of the input (polyData) and everything renders properly. However, if I sav

Re: [Paraview] VTK classes not found in paraview

2017-05-23 Thread Favre Jean
Florian #Edit your script, go to the following line transform1.Transform.Scale = [0.999, 0.997, 0.999] # and add one line transform1.UpdatePipeline() # ;-) #- #Jean/CSCS ___ Powered by www.kitware.

Re: [Paraview] VTK classes not found in paraview

2017-05-23 Thread Vogel Dorian
Thanks for the tip, is there no other possibility than editing the state file ? I might want to create a custom filter later on, which does not seem possible with this solution. Cheers, -- Dorian Vogel On Tuesday, May 23, 2017 4:34:21 PM CEST Favre Jean wrote: Florian #Edit your script, go