-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (66 loc) · 3.27 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>NURBS Surface</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/three.min.js"></script>
<script src="js/nurbsHelper.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<div class="container">
<div id="leftPanel">
<h1>NURBS Surface</h1>
Degree of U Parameter
<select id="udegree" class="deg">
<option class="deg" value="1">1</option>
<option class="deg" value="2">2</option>
<option class="deg" value="3" selected>3</option>
<option class="deg" value="4">4</option>
<option class="deg" value="5">5</option>
</select> <br>
Degree of W Parameter
<select id="wdegree" class="deg">
<option class="deg" value="1">1</option>
<option class="deg" value="2">2</option>
<option class="deg" value="3" selected>3</option>
<option class="deg" value="4">4</option>
<option class="deg" value="5">5</option>
</select>
<hr>
<table id="tablePoints">
<tbody id="tablePointsBody"> </tbody>
</table>
<fieldset id="pointData">
<legend id="pointLegend">Point 1 Homogeneous Coordinates</legend>
x <input type="range" id="pointx" min=-1.00 max=1.00 step="0.001" value=0.00>
<output id="opPointx">0.000</output><br>
y <input type="range" id="pointy" min=-1.00 max=1.00 step="0.001" value=0.00>
<output id="opPointy">0.000</output><br>
z <input type="range" id="pointz" min=-1.00 max=1.00 step="0.001" value=0.00>
<output id="opPointz">0.000</output><br>
h <input type="range" id="pointw" min=1.00 max=10.00 step="0.01" value=1.00>
<output id="opPointw">1.000</output><br>
</fieldset>
<hr>
<form>
Camera Angle <input type="range" id="cameraAngle" min=0.0 max=360.0 step="1" value=25>
<output id="opCameraAngle">25</output><br>
<input type="checkbox" id="wireframe"> Show Wireframe<br>
Moving Point u value <input type="range" id="uValue" min=0.0 max=1.0 step="0.001" value=.6>
<output id="opUvalue">0.6</output><br>
Moving Point w value <input type="range" id="wValue" min=0.0 max=1.0 step="0.001" value=.45>
<output id="opWvalue">0.45</output><br>
</form>
<button id="knotU">Show Knot U Vector</button>
<button id="knotW">Show Knot W Vector</button>
<div class="tooltip"> Usage
<span class="tooltiptext">Select the U, W Degrees of the NURBS Surface. Edit
a point by clicking on the Edit button. Rotate the Camera by using the Camera Angle slider.
Modify the moving parameters point by using the u and w value sliders. You can also view the
Knot Vectors. </span>
</div>
</div>
<div id="webglOp"> </div>
</div>
</body>
</html>