1
0
mirror of https://github.com/omrips/viewstl synced 2026-01-02 20:29:58 +03:00

Update README.md

This commit is contained in:
omrips
2020-05-24 10:58:37 +03:00
committed by GitHub
parent 7fefc80db7
commit e06ffc6ddf

View File

@@ -22,4 +22,9 @@ Create a new instance of Stl Viewer (simplest initiation - read and view STL fil
var stl_viewer=new StlViewer(document.getElementById("stl_cont"), { models: [ {id:0, filename:"mystl.stl"} ] });
```
important! if script files are not at the same folder as your page is - use 'load_three_files' parameter:
```
var stl_viewer=new StlViewer(document.getElementById("stl_cont"), {  load_three_files: **<your scripts folder>**, models: [ {id:0, filename:"mystl.stl"} ] });
```
more at https://www.viewstl.com/plugin/