[vtkusers] How to get the facet normals from stl file

Samu gaoxuanhui at foxmail.com
Fri Jun 17 09:06:47 EDT 2011


Hi all:
     I have met a problem about reading the normals information from stl
file. I search the mail list and find some people had met the same problem
as I do, but the problem was left unsolved. Could anyone give any
suggestions?
Here is the copy of the mail list:
Hi everyone:
   Now I can get three points coodinates of the same one triangle facet
by the help of Vladimir Lazunin. But I have another question that I cannot
solve
by myself. In stl file there is normal information of a triangle facet. I
want to

get normal information too. I searched the book of vtk user's guide and
web,but I

didnot find interface to get normal information of stl file in vtk. Could
someone
give any suggestions?
 
 Thanks in advance for any help.
 
 Fu Wenyu
2007.06.18 

PS: the stl file format is something like:
solid D:\menjingmai.stl
  facet normal -0.492339 -0.350138 -0.796872
    outer loop
      vertex 22.718824 59.286057 58.148018
      vertex 23.072716 58.932167 58.084866
      vertex 22.638647 58.932167 58.353050
    endloop
  endfacet
  facet normal -0.692186 -0.237941 -0.681368
    outer loop
      vertex 22.516996 59.286057 58.353050
      vertex 22.718824 59.286057 58.148018
      vertex 22.638647 58.932167 58.353050
    endloop
  endfacet
...
...
...
endsolid D:\menjingmai.stl

--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-the-facet-normals-from-stl-file-tp4498677p4498677.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list