An STL importer/exporter for Unity.
pb_Stl is the exporter used in ProBuilder to save STL model files.
Packages
directory of your Unity project, git clone https://github.com/karl-/pb_Stl.git co.parabox.stl
or
Packages/manifest.json
"co.parabox.stl":"https://github.com/karl-/pb_Stl.git"
to the "dependencies"
listGameObject
in the Scene View with a MeshFilter
and valid Mesh
.Edit > Export > STL (Ascii)
.Unity's coordinate system is left handed, with Y axis as the vertical. Other 3d modeling programs may have different coordinate systems or axis assignments. pb_Stl exports right handed coordinates by default, but can be modified to retain left handed coordinates. Support for swapping axes is planned.
If you would like to submit improvements please include NUnit tests for your changes (and make sure they don't break any existing tests).
It's MIT.