Threed-Viewer

Filters ::: filter_threedviewer
Maintained by ETHzETH Zürich
3D viewer filter (.stl format)

Threed-Viewer 1.0

Moodle 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11
Released: Sunday, January 23, 2022, 5:14 AM

Threed-Viewer Moodle filter

This moodle filter uses a custom Javascript layer 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.

Version information

Version build number
2022011800
Version release name
1.0
Maturity
Beta
MD5 Sum
6615e1efe7454cdf7c27a21c0e1756bb
Supported software
Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1
  • Latest release for Moodle 3.2
  • Latest release for Moodle 3.3
  • Latest release for Moodle 3.4
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Filters

  1. Make sure you have all the required versions.
  2. Download and unpack the filter plugin.
  3. Place the folder (eg "myfilter") in the "filter" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation