-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (89 loc) · 3.85 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<title>Automatic 3D Shape Completion Visualization</title>
<link rel="icon" href="images/icon.png"/>
<link rel="stylesheet" type="text/css" href="css/open-sans.css"/>
<link rel="stylesheet" type="text/css" href="css/app.css"/>
<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css"/>
</head>
<body>
<nav id="main-navigation">
<h1>3D Object Completion - Visualization Tool</h1>
</nav>
<div id="main-wrapper"><!-- Canvas goes here --></div>
<!-- Everything else is fixed -->
<div id="details-wrapper" class="info-wrapper details-wrapper">
<div class="details-wrapper__general"></div>
<div class="details-wrapper__completed"></div>
</div>
<div id="tools-wrapper" class="info-wrapper tools-wrapper">
<div class="tools-section">
Upload a File to start
<input id="file-input" type="file" name="file-input" value=""/>
</div>
<ul class="tools-section ui-wrapper js-ui-wrapper">
<li id="axes"><i class="fa fa-eye toggable fa-btn" aria-hidden="true" title="Toggle Visibility"></i>Coordinate Axes</li>
<li id="selection-size">
<div>
Selection Area Size
<input type="range" value="20" min="5" max="50"/><span>20</span>
</div>
</li>
<li id="refresh"><i class="fa fa-refresh fa-btn" aria-hidden="true" title="Reset Highlight"></i>Reset Highlight</li>
<!-- User interaction will be inserted here via JavaScript. -->
</ul>
<div class="tools-section js-controls-panel">
<button class="js-complete-btn" title="Submit to the server for automatic completion">Complete</button>
<button class="js-export-btn" title="Export visible point cloud as a PLY file">Export as PLY</button>
</div>
</div>
<div class="loading-screen">
<div class="loading-screen__content">
<!-- Animation -->
<div class="sk-folding-cube">
<div class="sk-cube1 sk-cube"></div>
<div class="sk-cube2 sk-cube"></div>
<div class="sk-cube4 sk-cube"></div>
<div class="sk-cube3 sk-cube"></div>
</div>
<p>Please wait...</p>
<div class="progress-bar">
<div class="progress-bar__progress"></div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/three.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/app.js"></script>
<script type="x-shader/x-vertex" id="vertexshader">
attribute float size;
attribute float alpha;
attribute vec3 colors;
varying float vAlpha;
varying vec3 vColor;
void main() {
vAlpha = alpha;
#ifdef USE_COLOR
vColor = colors;
#endif
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
gl_PointSize = size * ( 300.0 / -mvPosition.z );
gl_Position = projectionMatrix * mvPosition;
}
</script>
<script type="x-shader/x-fragment" id="fragmentshader">
uniform vec3 unicolor;
varying vec3 vColor;
varying float vAlpha;
void main() {
#ifdef USE_COLOR
gl_FragColor = vec4(vColor, vAlpha);
#else
gl_FragColor = vec4(unicolor, vAlpha);
#endif
}
</script>
</body>
</html>