<div style="font-family:Verdana;font-size:14px;color:#000;"><DIV>But&nbsp;the&nbsp;stl&nbsp;file&nbsp;contains&nbsp;the&nbsp;normals&nbsp;information,&nbsp;why&nbsp;do&nbsp;I&nbsp;compute&nbsp;the&nbsp;normals&nbsp;again&nbsp;with&nbsp;the&nbsp;vtkPolyDataNormal?&nbsp;Actually&nbsp;I&nbsp;have&nbsp;tried&nbsp;it.&nbsp;The&nbsp;normals&nbsp;geted&nbsp;from&nbsp;the&nbsp;vtkPolyDataNormal&nbsp;is&nbsp;not&nbsp;eaqual&nbsp;to&nbsp;the&nbsp;normals&nbsp;in&nbsp;the&nbsp;file.&nbsp;</DIV><div style="font:Verdana normal 14px;color:#000;padding:8px 0px;"><div>&nbsp;</div><div>&nbsp;</div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;Original&nbsp;------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Adriano Gagliardi"<agagliardi@ara.co.uk>; </div><div><b>Date:</b> 2011年6月17日(星期五) 晚上9:29</div><div><b>To:</b> "'David Doria'"<daviddoria@gmail.com>; "'Samu'"<gaoxuanhui@foxmail.com>; </div><div><b >Cc:</b> "vtkusers"<vtkusers@vtk.org>; </div><div><b>Subject:</b> RE: [vtkusers] How to get the facet normals from stl file</div></div><div>&nbsp;</div><br>You could always generate the normals from your vtkPolyData input using<br>vtkPolyDataNormals?<br><br><br>===================================<br><br>Adriano Gagliardi MEng PhD<br>Business Sector Leader<br>Computational Aerodynamics<br>Aircraft Research Association Ltd.<br>Manton Lane<br>Bedford<br><br>Tel: 01234 32 4644<br>E-mail: <a target="_blank" href="mailto:agagliardi@ara.co.uk">agagliardi@a<wbr>ra.co.uk</a><br>Url: www.ara.co.uk <br>-----Original Message-----<br>From: <a target="_blank" href="mailto:vtkusers-bounces@vtk.org">vtkusers-bou<wbr>nces@vtk.org</a> [mailto:<a target="_blank" href="mailto:vtkusers-bounces@vtk.org">vtkusers-bou<wbr>nces@vtk.org</a>] On Behalf<br>Of David Doria<br>Sent: 17 June 2011 14:18<br>To: Samu<br>Cc: <a target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk<wbr>.org</a><br>Subject: Re: [vtkusers] How to get the facet normals from stl file<br><br>On Fri, Jun 17, 2011 at 9:06 AM, Samu &lt;<a target="_blank" href="mailto:gaoxuanhui@foxmail.com">gaoxuanhui@f<wbr>oxmail.com</a>&gt; wrote:<br>&gt; Hi all:<br>&gt;&nbsp; &nbsp; &nbsp;I have met a problem about reading the normals information from <br>&gt; stl file. I search the mail list and find some people had met the same <br>&gt; problem as I do, but the problem was left unsolved. Could anyone give <br>&gt; any suggestions?<br>&gt; Here is the copy of the mail list:<br>&gt; Hi everyone:<br>&gt;&nbsp; &nbsp;Now I can get three points coodinates of the same one triangle facet <br>&gt; by the help of Vladimir Lazunin. But I have another question that I <br>&gt; cannot solve by myself. In stl file there is normal information of a <br>&gt; triangle facet. I want to<br>&gt;<br>&gt; get normal information too. I searched the book of vtk user's guide <br>&gt; and web,but I<br>&gt;<br>&gt; didnot find interface to get normal information of stl file in vtk. <br>&gt; Could someone give any suggestions?<br><br>You should not think of it as getting normals from an STL file. You should<br>think about it as reading an STL file into a vtkPolyData, and then getting<br>normals from a vtkPolyData. If the normals aren't in the vtkPolyData, then<br>the STL reader is incomplete.<br><br>David<br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br><a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.k<wbr>itware.com/o<wbr>pensource/op<wbr>ensource.htm<wbr>l</a><br><br>Please keep messages on-topic and check the VTK FAQ at:<br><a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.v<wbr>tk.org/Wiki/<wbr>VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.v<wbr>tk.org/mailm<wbr>an/listinfo/<wbr>vtkusers</a><br><br><br>**********************************************************************<br>This email contains information that is private and confidential and is intended only for the addressee.<br>If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>system management and security reasons.<br>Aircraft Research Association Ltd.&nbsp; Registered in England, Registration No 503668 Registered Office:<br>Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br><br>**********************************************************************<br><br>  <!-- --><style></style></div></div>