[vtkusers] STL - Solid Labeling name and color

tachyon tec tachyon_me at yahoo.com
Wed May 8 19:44:55 EDT 2013


Hi


I am trying to use vtkSTLReader  
  to read a stl file which has  multiple  solid with different
label and color. 





I would like  to read  color
and solid label information  from  stl file.   and  have the  ability to show on/off a particular solid label (part).   



Approach I'm taking to read stl file
and assign each stl label to an actor class .  So there will be  number
of actor added to renderer . 





Any  help / guidance appreciated.  Thanks in advance
!





======== test.stl===========



solid   mylabel1

     color   1 0
0 

  facet normal   .5  
0   .1

     outer loop 

        vertex  
  1   2 3 

   vertex     3
 2 1

   vertex     11
 1 2 3  

end loop 

end facet

:

:

end solid  mylabel1



solid  mylabel2

:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130508/bc6c638d/attachment.htm>


More information about the vtkusers mailing list