-
Notifications
You must be signed in to change notification settings - Fork 0
/
obj.html
34 lines (31 loc) · 1009 Bytes
/
obj.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="obj.css" />
<title>OBJ rectifier</title>
</head>
<body>
<p>
<input type="number" id="cxInp" value="0" />
<input type="number" id="cyInp" value="0" />
<input type="number" id="czInp" value="0" />
<button id="centerBtn">Center</button>
<label for="sizeInp">Size:</label>
<input type="number" id="sizeInp" value="1" />
<button id="resizeBtn">Resize</button>
<button id="rotatexBtn">Rotate X 90°</button>
<button id="rotateyBtn">Rotate Y 90°</button>
<button id="mirrorBtn">Mirror</button>
</p>
<textarea cols="80" rows="20"></textarea>
<p>
<button id="plotxyBtn">Front</button>
<button id="plotzyBtn">Side</button>
<button id="plotxzBtn">Top</button>
</p>
<canvas width="512" height="512" ></canvas>
<script src="obj.js"></script>
</body>
</html>