Plugin to use STL models as external mesh references
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
Gruntfile.js
LICENSE
README.md
package.json
xml3d-stl-plugin-min.js
xml3d-stl-plugin.js

README.md

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.