[vtkusers] Vertex normal

David Doria daviddoria at gmail.com
Mon Jan 31 07:26:59 EST 2011


On Mon, Jan 31, 2011 at 5:45 AM, Rachel <aracha2010 at gmail.com> wrote:
>
> any one has worked on that before ?
> any suggestion will be helpful
> Thank you
>

Even though you have passed the points through the PolyDataNormals
filter, you are getting the point, not the normal, of the output.
You'll want something like this:

polydata->GetPointData()->GetNormals()

I'm not exactly sure which format PolyDataNormals produces (bad
documentation), but you can get the normals with one of the 4 methods
shown here (you'll have to figure out which one works in this case):

http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals

David



More information about the vtkusers mailing list