[vtkusers] Question about vtkPolyDataNormals

Darshan Pai darshanpai at gmail.com
Sat Mar 10 11:08:49 EST 2012


You were right . Thanks David . I did not realize I was using
GetPointData->GetComponent instead of
GetPointData->GetNormals->GetComponent.

I kept on getting the annoying OutputWindow with the warning everytime I
was running the program and could not figure out why .

On Sat, Mar 10, 2012 at 10:56 AM, Darshan Pai <darshanpai at gmail.com> wrote:

> 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/bcf82fb6/attachment.htm>


More information about the vtkusers mailing list