-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (62 loc) · 1.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<head>
<title>STL platform preparer</title>
<style>
body {
margin: 0;
}
canvas {
width: 100%;
height: 100%;
}
#3dview {
width: calc(100% - 100px);
}
#controls {
float: right;
width: 200px;
}
#objectList {
overflow:auto;
width: 152px;
}
</style>
</head>
<body>
<div id="3dview">
</div>
<div id="controls">
<!--select stl file: <input type="file" id="file" /> or drop stl file-->
select or drag and drop .stl here:
<p>
<input type="file" id="file" />
</p>
<p>
<select id="objectList" size="5">
</select>
</p>
<button id="deletePart">remove part</button>
<p id="rotate">
Rotate X :<br>
<input type="number" id="rotateX" name="rotateX" style="width: 100px;"><button id="rotateXButton">rotate</button><br>
Rotate Y :<br>
<input type="number" id="rotateY" name="rotateY" style="width: 100px;"><button id="rotateYButton">rotate</button><br>
Rotate Z :<br>
<input type="number" id="rotateZ" name="rotateZ" style="width: 100px;"><button id="rotateZButton">rotate</button><br>
</p>
<p id="translate">
Translate X :<br>
<input type="number" id="translateX" name="translateX" style="width: 100px;"><button id="translateXButton">translate</button><br>
Translate Y :<br>
<input type="number" id="translateY" name="translateY" style="width: 100px;"><button id="translateYButton">translate</button><br>
Translate Z :<br>
<input type="number" id="translateZ" name="translateZ" style="width: 100px;"><button id="translateZButton">translate</button><br>
</p>
</div>
<!-- scripts -->
<script src="js/three.js"></script>
<script src="js/STLLoader.js"></script>
<script src="js/TrackballControls.js"></script>
<script src="js/3dviewer.js"></script>
</body>
</html>