[vtkusers] Displaying coloured polydata in a different colour

Bill Lorensen bill.lorensen at gmail.com
Sat Mar 10 14:27:32 EST 2012


On your mapper
ScalarVisibilityOff()

On Sat, Mar 10, 2012 at 11:20 AM, andyjk <andrewkeeling at hotmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list