-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
51 lines (46 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>babyplots example</title>
<script src="dist/CCapture.all.min.js"></script>
<!-- <script src="dist/examples/surface.js"></script> -->
<!-- <script src="dist/examples/heatMap.js"></script> -->
<script src="dist/examples/pointCloud.js"></script>
<!-- <script src="dist/examples/semantleExample.js"></script> -->
<!-- <script src="dist/examples/shapeCloud.js"></script> -->
<!-- <script src="dist/examples/shapeCloudInfo.js"></script> -->
<!-- <script src="dist/examples/imagestack.js"></script> -->
<script src="dist/babyplots.js"></script>
<style>
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
text-align: center;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
</head>
<body>
<canvas id="renderCanvas"></canvas>
<script>
var vis = new Baby.Plots("renderCanvas", {});
vis.fromJSON(pointCloudData);
vis.turntable = true;
vis.doRender();
vis.createButtons(["turntable", "json", "label", "record"]);
window.onresize = function () {
vis.resize();
}
</script>
</body>
</html>