-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
52 lines (45 loc) · 1.37 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
<!doctype html>
<html>
<head>
<title>Neu3d Test</title>
<script type="text/javascript" src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="./lib/neu3d.min.js"> </script>
</head>
<body>
<div id="vis-3d" class="vis-3d" style="width: 100%; height: 100%;"></div>
<script>
const parentDiv = document.getElementById('vis-3d');
let options = {
'stats': true, // set to false if you don't want to see stats
'adaptive': true,
'stats': true,
'datGUI': {
autoPlace: false,
resizable: false,
closed: true,
hideable: true
}
}
var neu3d = new Neu3D(parentDiv,
undefined, {
"globalCenter": {
'x': 0,
'y': -250,
'z': 0
}
},
options);
window.neu3d = neu3d; // expose neu3d instance to console for experimentation
$.getJSON("./data/adult_mesh.json", function(json) {
neu3d.addJson({
ffbo_json: json,
showAfterLoadAll: true
});
});
$(document).ready(() => {
neu3d.onWindowResize();
neu3d.fileUploadInput.click();
});
</script>
</body>
</html>