[vtkusers] Displaying coloured polydata in a different colour

andyjk andrewkeeling at hotmail.com
Sat Mar 10 14:20:30 EST 2012


Is it possible to display a set of coloured points in a different colour?

For example :
I have vtkPolyData with colour defined (this displays correctly in colour)

If I add  : source_actor->GetProperty()->SetColor(0.0,0.8,0.0); 
this statement seems to get ignored as the data is still displayed in its
original colour.

If I delete the colour fields out of the vtkPolyData then the object is
displayed in green (as expected).

So my question : Is there a way to 'override' an objects colour for display
purposes (and eg display the object entirely in green) without having to
permanently delete the objects pre-existing colour ?

--
View this message in context: http://vtk.1045678.n5.nabble.com/Displaying-coloured-polydata-in-a-different-colour-tp5553520p5553520.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list