-
Notifications
You must be signed in to change notification settings - Fork 3
/
voxview.html
45 lines (43 loc) · 1.32 KB
/
voxview.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
<!DOCTYPE html>
<html>
<head>
<title>VoxView</title>
<style type="text/css">
canvas { width: 100%; height: 100% }
#voxViewContainer {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div id="voxViewContainer">
<h2>VoxView</h2>
<div id="voxViewDisplay">
</div>
<a id="voxelLink" href="voxview.html" >Link To Voxel</a>
</div>
<script src="js/three.min.js"></script>
<script src="js/Detector.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/dat.gui.min.js"></script>
<script src="voxview.js"></script>
<script language="javascript">
window.onload = function (e) {
var corners;
var initialState = window.location.search.substring(1);
if (initialState) {
corners = VoxView.readQueryString(initialState);
}
var displayDiv = document.getElementById('voxViewDisplay');
voxObject = new VoxView.VoxViewApp({ cornerLocs: corners,
container: displayDiv,
width: 800,
height: 600 });
// Start animation loop
voxObject.animate();
}
</script>
</body>
</html>