[vtkusers] shading/smoothing

Craig N. Scott craig.scott at csiro.au
Tue Mar 4 00:10:02 EST 2003


You could try a couple of things. The first technique is to use Gouraud
shading and the vtkPolyDataNormals filter. The filter creates normals at
each node, which the Gouraud shader then uses to interpolate across the
element to produce a smoother-looking surface. If you have the Vtk
User's Guide, check the section on "Visualizing Polygonal Data", which
is section 5.2 in the book I have. There are probably examples included
in the Vtk distribution which use this filter.

The second technique (which can be used in addition to the first) is to
physically smooth the mesh with a smoothing filter. The User's Guide
lists vtkSmoothPolyDataFilter and vtkWindowedSincPolyDataFilter as two
examples (with the latter apparently being faster and giving better
results).

Sorry I can't be more specific (busy time at work) - if you can get your
hands on the Vtk User's Guide, it should give you sufficient details.


On Tue, 2003-03-04 at 15:45, Marwan Adada wrote:
> Hello VTK users,
> 
> I have used vtkImageData to pass my rawdata file to vtk and hence render my 
> volume. It seems fine, but the quality of the isosurfaces is not that good.  
> It's not smooth. I am probably missing something in shading or smoothing. 
> Any ideas how I can improve my results?
> 
> I appreciate every help,
> 
> thank you,
> Marc

-- 
Craig Scott, CSIRO (CMIS)
Ph:  +613 9545 8096

Copyright, the original authors, 2003. All rights reserved. All wrongs, too. ;)





More information about the vtkusers mailing list