ETH Zürich
Lead maintainer
This moodle filter uses a custom Javascript layer (threed-viewer) built on top of Three.js to display an interactive STL viewer.
The filter's work is limited to detecting the presence of .stl in the content and asking the Javascript library to be loaded.
There are two ways to add an STL viewer to content on moodle.
In the straightforward way, a link to the STL file is added through the content editor. The appearance can be somewhat controlled by passing query parameters:
To use the full capabilities of threed-viewer, the users need to use its custom elements to wrap the link to the STL file:
<threed-viewer width=50% height=400px controls help axi-helper toolbar>
<threed-model scale center><a href="http://mymoodle.com/draftfile.php/.../myfile.stl">myfile.stl</a></threed-model>
</threed-viewer>This filter is distributed under the GNU GPL 3.0+ License. It includes a bundled version of three.js, which is distributed under the MIT License.
For feedback and requests, please contact Cyril Picard <cpicard A_T ethz.ch>.