[vtkusers] how to calculate normals on the surface of a 3d objectin VTK?

Vidya Raghavan vidya_raghavan at hotmail.com
Wed Sep 22 17:55:38 EDT 2004


Also, how do I iterate through the normals in the code you have below, and 
display them on the 3d model. I can display the model right now, but I can't 
display the normals from getnormals. I just want to verify the values. 
Thanks for any help!


>From: "Bernhard Mayrhofer" <berninho1 at hotmail.com>
>To: "Vidya Raghavan" <vidya_raghavan at hotmail.com>
>Subject: Re: [vtkusers] how to calculate normals on the surface of a 3d 
>objectin VTK?
>Date: Wed, 22 Sep 2004 09:16:57 +0200
>
>
>hi vidya,
>
>the C++ code i used to create normals is:
>
>vtkPolyDataNormals *dataset = vtkPolyDataNormals::New  ();
>dataset->SetInput(TrianglesModel->GetOutput());
>dataset->SetFeatureAngle(60.0);
>dataset->FlipNormalsOff();
>dataset->Update();
>
>to access the values, i used:
>float *point;
>point=Model->GetOutput()->GetPointData()->GetNormals()->GetTuple(pointID);
>
>bernhard
>
>
>
>
>----- Original Message ----- From: "Vidya Raghavan" 
><vidya_raghavan at hotmail.com>
>To: <vtkusers at public.kitware.com>
>Sent: Tuesday, September 21, 2004 6:05 PM
>Subject: [vtkusers] how to calculate normals on the surface of a 3d 
>objectin VTK?
>
>
>>Hi,
>>
>>I currently have code to display 3D segmented data. Is there a way I can 
>>calulate normals at every point on the surface of the object?
>>
>>Thanks for any help,
>>
>>-vidya
>>
>>_________________________________________________________________
>>Search for your life partner made easy. 
>>http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 On 
>>BharatMatrimony.com
>>
>>_______________________________________________
>>This is the private VTK discussion list. Please keep messages on-topic. 
>>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>

_________________________________________________________________
1 Paisa No Reserve Auctions.  
http://ads2.baazee.com/cgi-bin/banners/redirect.pl?id=2553 T-Shirts, Shirts, 
Kurtas, Apparels.




More information about the vtkusers mailing list