[vtkusers] colour vtkpolydata

Cory Quammen cquammen at cs.unc.edu
Sat Jul 24 16:42:38 EDT 2010


Try calling ScalarVisibilityOff() on your vtkMapper.

Cory

On Sat, Jul 24, 2010 at 4:19 PM, Ali Habib <ali.mahmoud.habib at gmail.com> wrote:
> Hi All,
> I use vtkContourFilter , to extract iso surface from vtkimagedata
>             vtkContourFilter skinExtractor = new vtkContourFilter();
>             skinExtractor.SetInputConnection(VIT.GetOutputPort());
>             skinExtractor.SetValue(0, isovalue);
>             skinExtractor.ComputeGradientsOn();
>             skinExtractor.Update();
> I want to colour this output vtkpolydata
> I am trying using
> SourceActor.GetProperty().SetColor(1, 0, 0);
> where SourceActor is the actor I use
> but no color appear, I don't know why
> any suggestion please and how to display ttthis vtkpolydata with the colour
> I specify
> Best regards
> _______________________________________________
> 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
>
>



-- 
Cory Quammen
Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen



More information about the vtkusers mailing list