Re: [Paraview] [EXT] RE: [EXTERNAL] Calculating cylindrical coordinates

2018-04-27 Thread kenichiro yoshimi
Hi Dennis, You can calculate cylindrical coordinates by utilizing vtkCylindricalTransform within the python programmable filter. It is something like below and faster than numpy. --- import vtk input = self.GetInput() output = self.GetOutput() transform = vtk.vtkCylindricalTransform() transfor

Re: [Paraview] [EXT] RE: [EXTERNAL] Calculating cylindrical coordinates

2018-04-27 Thread Dennis Conklin
Alan, Yes, I am calling it many times at the same angular location, but it's tough to know you're at the same angular location without calculating the angle. Also, C++ is definitely orders of magnitude quicker, but once I have to compile routines into Paravew life gets very complicated. We ba

Re: [Paraview] [EXTERNAL] Calculating cylindrical coordinates

2018-04-27 Thread Scott, W Alan via ParaView
Are there places on the cylinder you are calling atan2 with the same inputs, returning the same data, lots of times? Alternatively, could you calculate this in the simulation, and just add it to the simulation output? I am speculating that a C++ call to atan2 may be faster than numpy? Alan F

[Paraview] Calculating cylindrical coordinates

2018-04-27 Thread Dennis Conklin
All, If I wanted to run atan2(X,Y) on millions and millions of nodes to calculate cylindrical coordinates, but found that numpy.atan2 in a Programmable Filter was taking 45 minutes to run, what should I do to make it much faster? Thanks for any hints Dennis __

Re: [Paraview] Volume rendering rectilinear data

2018-04-27 Thread Weiguang Guan
Resampling it into vtkImageData is what I want to take in the current circumstance. Thank you both. Have a great weekend! Weiguang On 4/27/2018 12:53 PM, Aashish Chaudhary wrote: I am not aware of any plans for volume rendering for rectilinear volume but as I David mentioned, sampling it to t

Re: [Paraview] Volume rendering rectilinear data

2018-04-27 Thread Aashish Chaudhary
I am not aware of any plans for volume rendering for rectilinear volume but as I David mentioned, sampling it to the image space is what we have discussed / talked about. - aashish On Fri, Apr 27, 2018 at 12:30 PM David E DeMarle wrote: > Not that I know of. > > We are more likely to make the

Re: [Paraview] Volume rendering rectilinear data

2018-04-27 Thread Weiguang Guan
Hi David, Thanks for confirming it. Does Kitware have a plan to implement volume rendering for rectilinear volume? You see the spectrum from vtkImageData, to vtkRectilinearGrid, vtkStructuredGrid --- volume rendering is implemented on both ends but not for the middle one, which is a bit odd t

Re: [Paraview] Volume rendering rectilinear data

2018-04-27 Thread David E DeMarle
Not that I know of. We are more likely to make the conversion to image based volume rendering automatic, faster and more precise. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Apr 27, 2018 at 12:23 PM, Weiguang Guan

Re: [Paraview] Volume rendering rectilinear data

2018-04-27 Thread David E DeMarle
You are correct it will not directly volume render vtkRectilinearGrids. Use threshold filter (all values) to map to a vtkUnstructuredGrid for direct rendering but at a cost of memory explosion. Apply the resample to image filter to map to vtkImageData for fast volume rendering, but at a cost of tr

[Paraview] Volume rendering rectilinear data

2018-04-27 Thread Weiguang Guan
I didn't a test and I'm surprised that Paraview cannot do volume rendering on rectilinear data. Can someone confirm it or I made a mistake? Cheers, Weiguang -- -- Weiguang Guan Research Scientist RHPCS, McMaster University Phone: 905-525-9140 x22540

Re: [Paraview] Data Axes Grid in PV 5.5.0

2018-04-27 Thread Mathieu Westphal
Hello, This has been reported already in https://gitlab.kitware.com/paraview/paraview/issues/18128 and will be fixed soon in master. Thanks for your report. On Fri, 27 Apr 2018, 15:15 , wrote: > Hello All > > Sorry if this has been reported before, but I could not find any > discussion about i

Re: [Paraview] Programmable filter - Reading a vtkUnstructuredGrid in the Python script

2018-04-27 Thread Gaël Grail
Dear Mathieu, Thank you very much for this tip, it works ! Best regards, Gaël Grail 2018-04-27 14:51 GMT+02:00 Mathieu Westphal : > Dear Gaël > > In order to acess vtk*XML*UnstructuredGridReader in the python Script of > a Programmable Filter/Source you need to do the following : > > import vtk

Re: [Paraview] Programmable filter - Reading a vtkUnstructuredGrid in the Python script

2018-04-27 Thread Mathieu Westphal
Dear Gaël In order to acess vtk*XML*UnstructuredGridReader in the python Script of a Programmable Filter/Source you need to do the following : import vtk.vtkIOXML as ext reader = ext.vtkXMLUnstructuredGridReader() If you actually need the vtkUnstructuredGridReader in the python Script of a Pr

[Paraview] Programmable filter - Reading a vtkUnstructuredGrid in the Python script

2018-04-27 Thread Gaël Grail
Dear all, New to the mailing, and first question for me: hi everyone ! I'm using the 5.4 binary version of Paraview available online, I'm not compiling my own version. I'm trying to encapsulate an exe program in a programmable filter ; based on the programmable filter inputs and parameters, I run

[Paraview] Not a Number (NaN) in legacy vtk file format

2018-04-27 Thread KNAPP Graham
Hello, Is it possible to include Not a Number values in the legacy vtk file format ? I have tried and I get length mismatch errors on import. I am using Polydata - Cell data - Scalars - Float, writing the data from a Python script in a different application. If not, would it be possible to write

Re: [Paraview] converting .h5 file

2018-04-27 Thread Mathieu Westphal
Hi Phuripan, HDF5 is not a file format in itself, only Salvus tools will be able to manipulate it. If you are not able to use the script, you should ask Salvus community for help. Best, Mathieu Westphal On Fri, Apr 27, 2018 at 1:49 PM, Phuripan Jangthongsiri < bung_m...@hotmail.com> wrote: > H

Re: [Paraview] converting .h5 file

2018-04-27 Thread Michael Jackson
Typically an .xdmf file is an _additional_ file to the .h5 file and it does not replace the .h5 file. Does the python command generate a .xdmf or .xmf file after it completes? -- Michael Jackson | Owner, President BlueQuartz Software [e] mike.jack...@bluequartz.net [w] www.bluequart

Re: [Paraview] converting .h5 file

2018-04-27 Thread Phuripan Jangthongsiri
Hi, It's called Salvus. It's a software for Seismology. They have a command that: ! python ./petsc_gen_xdmf.py name_of_your_file.h5 and it should convert .h5 file to .xdmf but it doesn't work. I was wondering if there are any converters out there or any codes that I could run on python? Cheers

Re: [Paraview] converting .h5 file

2018-04-27 Thread Mathieu Westphal
Hi Phuripan, Which software are you using to produce your .h5 files ? Best, Mathieu Westphal On Fri, Apr 27, 2018 at 12:09 PM, Phuripan Jangthongsiri < bung_m...@hotmail.com> wrote: > Hi there! > > Thanks for your answers. I've been trying to find a way to convert .h5 > file to xdmf file. Do y

Re: [Paraview] PROBLEM WITH CUSTOM FILTER

2018-04-27 Thread Mathieu Westphal
Hi Miguel, I fail to reproduce with a single source in a custom filter. Could you please precise which version of ParaView you are using and which filter you are putting in a custom filter ? Thanks, Best regards, Mathieu Westphal On Fri, Apr 27, 2018 at 12:54 PM, Miguel Aguirre wrote: > Hi a

[Paraview] PROBLEM WITH CUSTOM FILTER

2018-04-27 Thread Miguel Aguirre
Hi all, I would like to know if its possible to create a custom filter without an input. In fact, I would like to use a data source followed by some filters and then to group all these actions (including the data source) in a single Custom Filter. However Paraview crashes when I click on the "fin

Re: [Paraview] converting .h5 file

2018-04-27 Thread Phuripan Jangthongsiri
Hi there! Thanks for your answers. I've been trying to find a way to convert .h5 file to xdmf file. Do you know the easiest way to do that? Sincerely, Phuripan Jangthongsiri From: Mathieu Westphal Sent: Friday, April 27, 2018 9:09 AM To: Phuripan Jangthongsiri C

Re: [Paraview] converting .h5 file

2018-04-27 Thread Mathieu Westphal
Dear Phuripan, ParaView support some hdf5 based format already, so you may want to try that first, i've included a list a .h5 based format supported by ParaView natively. TRUCHAS dataset PDAL Files Chombo Files GTC Files UNIC Files VizSchema Files H5Nimrod Files Multilevel 3D Plasma Files PFLOTRAN