[cad-linux] Re: STL file format

Roland,

There are both binary and ascii representations of the relatively 
trivial STL format.  BRL-CAD includes support for reading and writing 
both albeit not in an isolated library.  The format wasn't really 
complicated enough to warrant a library of it's own.  See the 
src/conv/g-stl.c and src/conv/stl-g.c files in the BRL-CAD source 
distribution for our exporter and importer sources respectively 
(http://sf.net/projects/brlcad).  There are details on the STL format 
available on-line in various places too, one such place is 
http://www.wotsit.org/download.asp?f=stl

Hope that helps,
Sean


On May 3, 2005, at 01:18, Roland Krause wrote:

> Can anyone point me to the definition of the STL file format?
>
> Anyone know of any open source libraries to read and write this format?
> Preferrably C++ but anything would be helpful.
>
> Thanks
> Roland


Other related posts: