3 <title>Box by extrude
</title>
4 <script type=
"text/javascript" src=
"nt3d.js"></script>
5 <script type=
"text/javascript">
6 function box_by_extrude(size) {
7 var origin = [
0,
0,
0];
10 var xy = [size, size,
0];
11 return nt3d.extrude([origin, x, xy, y],
12 [[
0,
0,
0], [
0,
0,
1]],
13 [[
0,
0,
1], [
0,
0,
1]],
14 [[
1,
0,
0], [
1,
0,
0]]);
16 var params = [["Size",
1]];
19 <body onload=
"nt3d.framework(box_by_extrude, params)">
20 <h1>Box by extrude
</h1>
21 <p>Make a box by extruding a square.
</p>