[vtkusers] Smoothing
Ted Vu
lost_bits1110 at hotmail.com
Wed Feb 25 21:53:45 EST 2004
Hi Malcolm
Thanks kindly for your help
Have you by any chance used this class before?
What I did was I set the input of vtkCellDataToPointData class to the
PolyData which contained the cells that I was color mapping originally.
Then I get the new output using the vtkCellDataToPolyData class object as
follows:
CellToPointData->SetInput(SetOfQuadCells);
NewPolyDataCellsUsingPointData = CellToPointData->GetPolyDataOutput();
But this seems to not associate any scalar data at all because i just get a
white parallellogram. I also removed the line where it says
Mapper->SetScalarModeToUseCellData (but with or without this, it still gives
the same output)
I also tried with and without 'PassCellDataOn();'
is there anything else i'm overlooking?
thanks so much
>From: "Malcolm Drummond" <malcolm at geovision.co.za>
>To: "Ted Vu" <lost_bits1110 at hotmail.com>
>Subject: Re: [vtkusers] Smoothing
>Date: Wed, 25 Feb 2004 18:57:23 +0200
>
>Hi Ted
>
>I assume you're using cell-data. You can get a blended effect by using
>point-data instead. vtkCellDataToPointData will do the conversion for you.
>
>HTH
>Malcolm
>
>----- Original Message -----
>From: "Ted Vu" <lost_bits1110 at hotmail.com>
>To: <vtkusers at vtk.org>
>Sent: Wednesday, February 25, 2004 5:48 PM
>Subject: [vtkusers] Smoothing
>
>
> > Good morning
> >
> > I have a vtkPolyData (one big parallelogram) which consists of many
> > parallelograms (I got this from vtkPlaneSource) and I have color coded
>each
> > of the cells to some color corresponding to a scalar
> >
> > But this looks very 'pixelated'
> > I cannot increase teh number of cells/resolution (i.e the number of
>smaller
> > parallelograms in my big parallelogram) becaus this significantly
>reduces
> > speed etc..
> >
> > So I tried using vtkSmoothPolyDataFilter by doing teh following:
> >
> > Smoother = vtkSmoothPolyDataFilter::New();
> > Smoother->SetNumberOfIterations(100);
> > Smoother->FeatureEdgeSmoothingOn();
> > Smoother->SetInput(myPolyData->GetOutput());
> >
> > but this makes absolutely no difference
> >
> > I also treid teh same with Smoother =
>vtkWindowedSincPolyDataFilter::New();
> >
> > So how can I sort of 'blur' all these parallelograms so it doesnt look
>so
> > pixelated?
> >
> > _________________________________________________________________
> > Get fast, reliable access with MSN 9 Dial-up. Click here for Special
>Offer!
> > http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
_________________________________________________________________
Watch high-quality video with fast playback at MSN Video. Free!
http://click.atdmt.com/AVE/go/onm00200365ave/direct/01/
More information about the vtkusers
mailing list