Plugin to use STL models as external mesh references. Check-out the example.
The plug-in to encode mesh models is not chosen by file ending but by media type. So make sure your STL models are delivered with media type application/vnd.ms-pki.stl
. In the response header of the STL file you should find:
Content-Type: application/vnd.ms-pki.stl
<group ...>
<mesh src="https://github.com/xml3d/xml3d-stl-plugin/raw/master/./path/to/model.stl"></mesh>
</group>
This plug-in is based on the great stl-reader library from tatx. The STL models used in the example are from the same repository.