]> git.scottworley.com Git - nt3d/blame_incremental - box_by_quadstrip.html
Reduce defaults for a smaller output file
[nt3d] / box_by_quadstrip.html
... / ...
CommitLineData
1<html>
2 <head>
3 <title>Box by quadstrip</title>
4 <script type="text/javascript" src="nt3d.js"></script>
5 <script type="text/javascript">
6 function box_by_quadstrip(params) {
7 var origin = [0, 0, 0 ];
8 var x = [params.size, 0, 0 ];
9 var y = [0, params.size, 0 ];
10 var z = [0, 0, params.size];
11 var xy = [params.size, params.size, 0 ];
12 var xz = [params.size, 0, params.size];
13 var yz = [0, params.size, params.size];
14 var xyz = [params.size, params.size, params.size];
15 return [].concat(
16 nt3d.quad(origin, y, xy, x), // bottom
17 nt3d.quad(z, xz, xyz, yz), // top
18 nt3d.closed_quadstrip([origin, z, y, yz, xy, xyz, x, xz]));
19 }
20 var params = [["size", 1]];
21 </script>
22 </head>
23 <body onload="nt3d.framework(box_by_quadstrip, params)">
24 <h1>Box by quadstrip</h1>
25 <p>Make a box with a top, bottom, and a quadstrip for the sides.</p>
26 </body>
27</html>