[vtkusers] Question about normal calc in vtkContourFilter

Adam D. Burry aburry at igotechnologies.com
Tue Dec 4 14:03:37 EST 2001


Weiguang:

> Does anyone know how to use vtkContourFilter to get a surface so that each
> vertex of the mesh has not only coordinates but normal as well? I look at
> the manual and cannot figure out what should be passed in to
>                     SetComputeNormals (int)
> Another question is how the normals are calculated, are they determined by
> vertices' coordinates? Can I use gradient instead of normal in lighting
> computation? Any hint will be appreciated, better with sample code.

I can't answer all of this question, but I think I can answer part of
it. If you have a surface with missing normals you need to use the
vtkPolyDataNormals filter.

Adam

--
Mr. Adam D. Burry, Software Developer
aburry at igotechnologies.com



More information about the vtkusers mailing list