forked from pixelperfect3/BezierView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
89 lines (69 loc) · 2.33 KB
/
test.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
78
79
80
81
82
83
84
85
86
87
88
89
<!-- The main file which will act as the interface to BezierView
Author(s):
Ruijin Wu
Shayan Javed [shayanj at gmail.com]
-->
<!-- TODO:
-User Interface for modifying parameters
-Rendering surfaces and surface properties (curvature, reflection lines, normals, etc.)
-Reading in multiple types
-->
<!doctype html>
<html lang="en">
<head>
<title>three.js canvas - geometry - cube</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monospace;
background-color: #f0f0f0;
margin: 0px;
overflow: hidden;
}
</style>
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<!-- UI -->
Show Control Mesh:
<input type = "checkbox" checked="checked" id="cb_controlMesh" onClick="toggle_controlMesh();"/>
<br />
Show Patches:
<input type = "checkbox" checked="checked" id="cb_patches" onClick="toggle_patches();"/>
<br />
<form>
<div align="left"><br/>
<input type="radio" name="renderMode" value="normal"
onclick="setPatchRenderMode(bvPatch.Normal);"
checked = "checked"> Normal<br>
<input type="radio" name="renderMode" value="crv"
onclick="setPatchRenderMode(bvPatch.CurvatureColor);">
Curvature Color <br/>
<input type="radio" name="renderMode" value="highlight"
onclick="setPatchRenderMode(bvPatch.HighlightLine);"
>
Highlight Line <br/>
<input type="radio" name="renderMode" value="reflect"
onclick="setPatchRenderMode(bvPatch.ReflectionLine);">
Reflect Line <br/>
</div>
</form>
<!-- The Three.js library for rendering -->
<script src="js/Three.js"></script>
<!-- The library for curvature rendering -->
<script src="js/crv.js"></script>
<!-- The library for highlight/reflectline -->
<script src="js/highlight.js"></script>
<!-- The library for Patch -->
<script src="js/bvPatch.js"></script>
<!-- The library for reading patches -->
<script src="js/read.js"></script>
<!-- Evaluating patches -->
<script src="js/eval.js"></script>
<!-- The main renderer and starting point -->
<script src="js/test.js"></script>
<script type="text/javascript">
</script>
</body>
</html>