i really need to clean this up
This commit is contained in:
46
out/html/cases_common.html
Normal file
46
out/html/cases_common.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="language_code">
|
||||
<head>
|
||||
<title>OpenSCAD STL Preview</title>
|
||||
<script src="deps/stl_viewer.min.js"></script>
|
||||
<script src="deps/three.min.js" defer></script>
|
||||
<script src="deps/webgl_detector.js" defer></script>
|
||||
<script src="deps/OrbitControls.js" defer></script>
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background-color: #2B2B2B;
|
||||
}
|
||||
|
||||
:not(html, canvas) {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
canvas {
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="stl_cont"></div>
|
||||
<script type="module">
|
||||
var stl_viewer = new StlViewer(
|
||||
document.getElementById("stl_cont"),
|
||||
{
|
||||
models: [{filename: "../cases_common.stl"}],
|
||||
camerax: -1,
|
||||
cameray: 1
|
||||
}
|
||||
);
|
||||
stl_viewer.set_grid(true);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user