1
0
mirror of https://github.com/omrips/viewstl synced 2026-01-02 20:29:58 +03:00
2020-05-22 11:38:27 +03:00
2020-05-22 11:32:48 +03:00
2020-05-22 11:32:48 +03:00
2020-05-22 11:32:48 +03:00
2020-05-22 11:28:46 +03:00
2020-05-22 11:38:27 +03:00

Viewstl

Javascript STL/OBJ 3D files Viewer

Reads binary/ASCII STL files; OBJ files

Supports multiple 3D files at the same container Set model's size, position, color, rotation and some basic animation Supports user's drag&drop Model click events Model information (size, volume, surface area etc.) Add existing meshes into scene Supports WebGL - falls back to HTML5 Canvas Pure JavaScript - Uses THREE.js library, no server side script is needed Can load THREE.js lib files in the background - no need to deal with THREE JS at all Supports multiple Stl Viewer instances at the same page

Usage:

At the html page header / page body:

<script src="stl_viewer.min.js"></script>

At the page body, create an element to contain the Stl Viewer, and give it an ID:

Create a new instance of Stl Viewer (simplest initiation - read and view STL file called 'mystl.stl'):

var stl_viewer=new StlViewer(document.getElementById("stl_cont"), { models: [ {id:0, filename:"mystl.stl"} ] });

more at https://www.viewstl.com/plugin/

Description
Viewstl Javascript plugin - STL/OBJ 3D files Viewer
https://www.viewstl.com/plugin/
Readme MIT 462 KiB
Languages
JavaScript 100%