From 7fefc80db7c28fbf6cd22554999125656dcba398 Mon Sep 17 00:00:00 2001 From: omrips Date: Fri, 22 May 2020 11:40:28 +0300 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 626c887..5c35552 100644 --- a/README.md +++ b/README.md @@ -3,27 +3,23 @@ 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 +Uses THREE.js lib - Can load THREE.js lib files in the background (no need to deal with THREE JS at all) Usage: ================ At the html page header / page body: -# +``` + +``` 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"} ] }); - +``` +var stl_viewer=new StlViewer(document.getElementById("stl_cont"), { models: [ {id:0, filename:"mystl.stl"} ] }); +``` more at https://www.viewstl.com/plugin/