Re: [Paraview] CSV Data using extra fields.

2010-07-30 Thread Andrew Maclean
Thankyou, works a treat! Now I know what I was doing wrong. Regards Andrew On Sat, Jul 31, 2010 at 12:15 AM, Andy Bauer wrote: > Something like the code below should work for the programmable filter. > Note that this assumes the input and output are polydata. > > pdi = self.GetPolyDataInp

Re: [Paraview] CSV Data using extra fields.

2010-07-30 Thread Andy Bauer
Something like the code below should work for the programmable filter. Note that this assumes the input and output are polydata. pdi = self.GetPolyDataInput() pdo = self.GetPolyDataOutput() pdo.SetPoints(pdi.GetPoints()) np = pdo.GetNumberOfPoints() a = vtk.vtkUnsignedCharArray() a.SetNumb

[Paraview] CSV Data using extra fields.

2010-07-29 Thread Andrew Maclean
I have a file that looks like this: x y z r g b px py -2.064749 -1.623789 5.264024 254 254 254 5.00 7.00 -2.267242 -1.790226 5.803583 254 254 254 5.00 8.00 -2.251401 -1.784915 5.786366 254 254 254 5.00 9.00 -1.401535 -1.134097 3.676532 201 201 201 5.00 14.00 -1.