/xml3d-stl-plugin

Plugin to use STL models as external mesh references

Primary LanguageJavaScriptMIT LicenseMIT

xml3d-stl-plugin Build Status

Plugin to use STL models as external mesh references. Check-out the example.

Usage

Server

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

Client

<group ...>
   <mesh src="../path/to/model.stl"></mesh>
</group>

Acknowledgments

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.