Writing STL FilesΒΆ

In order to write an STL file you must first construct a valid stl.Solid object containing the data that is to be written.

Files can then be written using stl.Solid.write_ascii() and stl.Solid.write_binary() respectively.