Hello,<BR> <BR>if they are there, I think you can obtain them as following:<BR>1.) obtain the dataset vtkDataSet *someDataSet = someVtkReader->GetDataSet();<BR>2.) vtkPointData *somePointData = someDataSet->getPointData();<BR>3.) check if somePointData != NULL;<BR>4.) vtkDataArray *someDataArray = somePointData->GetNormals(). This function is from the base class of vtkPointData (vtkDataSetAttributes) and will return NULL if no normals are there.<BR> <BR>Alternativly the same should be available for vtkCellData if normals are defined on the cells (flat shading).<BR> <BR>Hope that helps.<BR>Kind regards,<BR>Björn<BR><BR>----- Ursprüngliche Nachricht -----<BR>Von: David Doria <daviddoria@gmail.com><BR>Datum: Donnerstag, 16. April 2009, 1:08<BR>Betreff: Re: [vtkusers] Extract normals from this file?<BR>Cc: vtk <vtkusers@vtk.org><BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Sure, it has colors, but in Paraview if you run the Normal Glyphs filter, it displays normals, so they are clearly there somewhere, but how would you get at them in VTK in c++?<BR><BR clear=all><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Thanks,<BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>David<BR><BR><BR><BR>
<DIV class=gmail_quote><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>On Wed, Apr 15, 2009 at 6:44 PM, Andrew Maclean <SPAN dir=ltr><<A href="javascript:main.compose('new','t=andrew.amaclean@gmail.com')">andrew.amaclean@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Definitely rgb colours. ParaView displays it nicely.<BR><BR>
<DIV class=h5><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>On Thu, Apr 16, 2009 at 4:29 AM, Kevin H. Hobbs <<A href="javascript:main.compose('new','t=hobbsk@ohiou.edu')">hobbsk@ohiou.edu</A>> wrote:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> On Wed, 2009-03-25 at 13:51 -0400, David Doria wrote:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> This is an example of a file that stemmed my question about how to<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> read normals from a file. Can someone tell me how you would go about<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> figuring out how to read these normals?<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> <A href="http://engineeringnotes.net/parkinglot2.vtp" target=1>http://engineeringnotes.net/parkinglot2.vtp</A><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> Thanks,<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>>> David<BR>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> I don't think it has normals. It has rgb colors.<BR>><BR><BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> _______________________________________________<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> Powered by <A href="http://www.kitware.com/" target=1>www.kitware.com</A><BR>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> Visit other Kitware open-source projects at <A href="http://www.kitware.com/opensource/opensource.html" target=1>http://www.kitware.com/opensource/opensource.html</A><BR>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> Please keep messages on-topic and check the VTK FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=1>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> Follow this link to subscribe/unsubscribe:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>> <A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=1>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>><BR>><BR><BR><BR><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>--<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>___________________________________________<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Andrew J. P. Maclean<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Centre for Autonomous Systems<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>The Rose Street Building J04<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>The University of Sydney 2006 NSW<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>AUSTRALIA<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Ph: +61 2 9351 3283<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Fax: +61 2 9351 7474<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>URL: <A href="http://www.acfr.usyd.edu.au/" target=1>http://www.acfr.usyd.edu.au/</A><BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>___________________________________________<BR></DIV></BLOCKQUOTE><BR><BR>> _______________________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at <BR>> http://www.kitware.com/opensource/opensource.html<BR>> Please keep messages on-topic and check the VTK FAQ at: <BR>> http://www.vtk.org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR>------------------------------------------------------------------------- <BR>Dr. Bjoern Zehner <BR>UFZ Centre for Environmental Research Leipzig-Halle <BR>Permoserstrasse 15 <BR>04318 Leipzig <BR>Germany <BR>http://www.ufz.de/index.php?en=5673 <BR>Tel: ++49 (341) 235 1979 <BR>Fax: ++49 (341) 235 1939<BR><BR><BR></DIV>