Just a fork from https://github.com/brentyi/stl_web_viewer2
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
build | 3 years ago | |
models | 3 years ago | |
scripts | 3 years ago | |
stylesheets | 3 years ago | |
.gitignore | 3 years ago | |
.nojekyll | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
index.html | 3 years ago |
README.md
stl_web_viewer2
Demo: https://brentyi.github.io/stl_web_viewer2/
Friendly utility for embedding 3D models into webpages.
Basically the same as the original, but with less nodejs nonsense.
Usage:
<!doctype html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/106/three.min.js" integrity="sha256-tAVw6WRAXc3td2Esrjd28l54s3P2y7CDFu1271mu5LE=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://brentyi.github.io/stl_web_viewer2/build/stlwebviewer2.css" />
</head>
<body>
<div class="stlwv2-model" data-model-url="models/planet_gear.stl"></div>
<script src="https://brentyi.github.io/stl_web_viewer2/build/stlwebviewer2.js"></script>
</body>
</html>