-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (46 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Rotation Calculator</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto&display=swap">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="controls">
<input type="file" id="upload">
<button id="cube">Cube</button>
<button id="quadrangularPrism">Quadrangular Prism</button>
<button id="cone">Cone</button>
</div>
<div class="rotation-values" id="rotation-values">
Rotation: X: 0, Y: 0, Z: 0
</div>
<div class="rotation-buttons">
<div class="axis-buttons">
<button id="rotateXPositive">Rotate X +</button>
<button id="rotateXNegative">Rotate X -</button>
</div>
<div class="axis-buttons">
<button id="rotateYPositive">Rotate Y +</button>
<button id="rotateYNegative">Rotate Y -</button>
</div>
<div class="axis-buttons">
<button id="rotateZPositive">Rotate Z +</button>
<button id="rotateZNegative">Rotate Z -</button>
</div>
</div>
<div class="zoom-buttons">
<button id="zoomIn">Zoom In</button>
<button id="zoomOut">Zoom Out</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/GLTFLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/FBXLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/OBJLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/STLLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="script.js"></script>
</body>
</html>