-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.htm
More file actions
113 lines (78 loc) · 2.35 KB
/
layout.htm
File metadata and controls
113 lines (78 loc) · 2.35 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script src="https://rawgithub.com/jashkenas/underscore/master/underscore-min.js" type="text/javascript"></script>
<link href="css/ui-lightness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui-1.10.3.custom.js"></script>
<script src="js/jquery.layout-latest.min.js" type="text/javascript"></script>
<script src="js/ace/ace.js" type="text/javascript"></script>
<script src="js/axCADui.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="css/axcut.css" />
<script src="js/three.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/Stats.js"></script>
<script src="js/csg.js" ></script>
<script src="js/ThreeCSG.js"></script>
<script src="js/arboreal.js"></script>
<script src="js/axCAD.js" ></script>
<script src="example2.jscad"></script>
<script>
function log(txt) {
$('#log').append('<br/>' + txt);
}
function httpGet(theUrl)
{
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
$(function() {
project = new Project();
initUI();
project.loadFromURL('testProject.json');
updateResourceTree();
// test something
var screw;
var spec = {};
spec.l = {};
spec.l.value = 4;
spec.r = {};
spec.r.value = 4;
screw = Screw.make(spec);
screw.visualiseWithGL();
mesh = screw.visualisations[0].mesh;
mesh.geometry.computeBoundingBox();
mesh.castShadow = true;
mesh.receiveShadow = true;
scene.add(mesh);
});
</script>
<link type="text/css" rel="stylesheet" href="css/axcut.css" />
</head>
<body>
<div id="leftPanel" class="ui-layout-west">
<div id="resourceTree">
</div>
</div>
<div id="panel" class="ui-layout-center">
<div id="editorPanel" class="ui-layout-west">
<div id="editorRibbon">
<input type="text" id="resourceName">
<div id="saveButton" class="button">Save</div>
<div id="compileButton" class="button keyButton">Compile</div>
<div class="clear"></div>
</div>
<pre id="editor"></pre>
</div>
<div id="gl" class="ui-layout-center""></div>
</div>
<div class="ui-layout-south">
<div id="log">
</div>
</div>
</body>
</html>