[vtkusers] Question about vtkPolyDataNormals

Darshan Pai darshanpai at gmail.com
Sat Mar 10 10:56:50 EST 2012


I do . But I wanted to retrieve the normal at a particular point id .

On Sat, Mar 10, 2012 at 10:14 AM, David Doria <daviddoria at gmail.com> wrote:

> On Sat, Mar 10, 2012 at 7:30 AM, Darshan Pai <darshanpai at gmail.com> wrote:
> > What is the best method to retrieve the normals at each point from
> > vtkPolyDataNormals.
> > I was using GetComponent() , but vtk5.9 complains that the method is
> > deprecated.
> >
> > Regards
> > Darshan
>
> Don't you just get the output of the filter and then retrieve the
> normals as usual?
>
> vtkDataArray* normalsGeneric =
> polydataNormalsFilter->GetOutput()->GetPointData()->GetNormals();
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120310/c2bd79c6/attachment.htm>


More information about the vtkusers mailing list