]>
Commit | Line | Data |
---|---|---|
94faa4e5 SW |
1 | <html> |
2 | <head> | |
3 | <title>Box by extrude</title> | |
4 | <script type="text/javascript" src="nt3d.js"></script> | |
5 | <script type="text/javascript"> | |
3bafa9bd SW |
6 | function box_by_extrude(params) { |
7 | var origin = [0, 0, 0]; | |
8 | var x = [params.size, 0, 0]; | |
9 | var y = [0, params.size, 0]; | |
10 | var xy = [params.size, params.size, 0]; | |
0ee732b2 SW |
11 | return nt3d.extrude([[0, 0, 0], [0, 0, 1]], |
12 | [origin, x, xy, y], | |
08c25ec8 SW |
13 | [0, 0, 1], |
14 | [1, 0, 0]); | |
94faa4e5 | 15 | } |
3bafa9bd | 16 | var params = [["size", 1]]; |
94faa4e5 SW |
17 | </script> |
18 | </head> | |
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> | |
22 | </body> | |
23 | </html> |