[vtkusers] colour vtkpolydata

Ali Habib ali.mahmoud.habib at gmail.com
Sat Jul 24 18:21:38 EDT 2010


Dear Cory

thanks for your reply it worked very well

On Sat, Jul 24, 2010 at 11:42 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100725/b1c44036/attachment.htm>


More information about the vtkusers mailing list