插件过滤器

Threed-Viewer

filter_threedviewerETH Zurich

  • Moodle 1.9–5.1
  • 更新 2025-12-03

3D viewer filter (.stl format)
Threed-Viewer Moodle filter
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.
Usage
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:
<a href=”http://mymoodle.com/draftfile.php/…/myfile.stl?width=300px&height=300px”>myfile.stl</a>
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>
License
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.
Feedback
For feedback and requests, please contact Cyril Picard <cpicard A_T ethz.ch>.

返回插件目录