.stl File Loader Plugin

You can find the STL loader here

To use it you just have to reference it after Babylon.js:

<script src="Babylon.js"></script>
<script src="babylon.stlFileLoader.js"></script>

Then you can use one of the static functions on the SceneLoader to load. See how to load from any file type

By default, the STL loader swaps the Y and Z axes. To disable this behavior, set

BABYLON.STLFileLoader.DO_NOT_ALTER_FILE_COORDINATES = true;