Re: [Paraview] I: 3D point cloud with color

2012-03-02 Thread Andrew Maclean
Hi David, Interesting, I just checked this out using ParaView and you are correct if a transform filter is applied. However in the display tab of ParaView if you transform there then the colouring is unaffected. Never noticed this because we have been just transforming using the transform in th

Re: [Paraview] I: 3D point cloud with color

2012-03-02 Thread David Doria
Andrew, I may have missed something in the discussion, but you typically do not want to set colors via SetVectors as you mentioned ( p->GetPointData()->SetVectors(rgb); ) My understanding is that whatever is set with SetVectors will be transformed when the data set is transformed. I.e. if you rot

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread Andrew Maclean
I also attach the vtp file I created from your text file. Set the point size to 11 to make the points more obvious. On Mon, Feb 27, 2012 at 6:57 PM, Giulio Reina wrote: > Hi all, > > Following  David's suggestion, I came up with the code attached that turns > the starting data file (rgb.txt, of t

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread Andrew Maclean
There is a problem in your C++ code. You need to do something like this (these are snippets from my code): vtkSmartPointer rgb = vtkSmartPointer::New(); rgb->SetNumberOfComponents(3); // red,green,blue rgb->SetName("color"); ... Fill the unsigned array with the rgb values. ... Then do: p-

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread David Pont
Marle [mailto:dave.dema...@kitware.com] Sent: Tuesday, 28 February 2012 10:08 a.m. To: Pat Marion Cc: David Pont; paraview@paraview.org Subject: Re: [Paraview] I: 3D point cloud with color And here is an example python programmable filter that you can adapt to produce a 3 component unsigned char RGB

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread David E DeMarle
DDI +64 7 343 5663 >> www.scionresearch.com >> >> >> >> -Original Message- >> From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] >> On Behalf Of Giulio Reina >> Sent: Monday, 27 February 2012 8:57 p.m. >> To: par

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread Pat Marion
paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] > On Behalf Of Giulio Reina > Sent: Monday, 27 February 2012 8:57 p.m. > To: paraview@paraview.org > Cc: andrew.amacl...@gmail.com > Subject: [Paraview] I: 3D point cloud with color > > Hi all, > > Following David

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread David E DeMarle
t, Private Bag 3020, Rotorua 3046, New Zealand > DDI +64 7 343 5663 > www.scionresearch.com > > > > -Original Message- > From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On > Behalf Of Giulio Reina > Sent: Monday, 27 February 2012 8:57 p.

Re: [Paraview] I: 3D point cloud with color

2012-02-27 Thread David Pont
araview.org] On Behalf Of Giulio Reina Sent: Monday, 27 February 2012 8:57 p.m. To: paraview@paraview.org Cc: andrew.amacl...@gmail.com Subject: [Paraview] I: 3D point cloud with color Hi all, Following David's suggestion, I came up with the code attached that turns the starting data file (rgb

[Paraview] I: 3D point cloud with color

2012-02-26 Thread Giulio Reina
Hi all, Following David's suggestion, I came up with the code attached that turns the starting data file (rgb.txt, of the type [X Y Z R G B] (the first three vector columns specify the location of the single point and the last three one its color in RGB space)) into a parsed vtp format. Unfortuna