[Paraview] vtk.vtkPoints.SetData()

2015-04-27 Thread Magician
Hi all, I’m going to generate pointclouds from CSV with Programmable Filter. On ParaView 4.1 or older, the script works: from paraview.vtk.dataset_adapter import numpyTovtkDataArray as da from paraview.vtk.dataset_adapter import vtkDataArrayToVTKArray as va pdi = self.GetInput()

[Paraview] vtk.vtkPoints.SetData()

2015-04-27 Thread Christophe Bourcier
Hi Magician, Since Paraview 4.2, you have to use column_stack instead of hstack to create a multi-component field. See this thread http://public.kitware.com/pipermail/paraview/2015-April/033756.html Christophe ___ Powered by www.kitware.com Visit other

Re: [Paraview] vtk.vtkPoints.SetData()

2015-04-29 Thread Magician
Hi Christophe, Thanks. column_stack() works correctly. Magician > On Apr 29, 2015, at 01:00, paraview-requ...@paraview.org wrote: > > Message: 1 > Date: Mon, 27 Apr 2015 20:22:41 +0200 > From: Christophe Bourcier > To: f_magic...@mac.com > Cc: paraview@paraview.org