]> git.scottworley.com Git - nt3d/blob - cone_primitive.html
19a76862796434c7e7ebc362686623b0ae284e42
[nt3d] / cone_primitive.html
1 <html>
2 <head>
3 <title>Cone primitive</title>
4 <script type="text/javascript" src="nt3d.js"></script>
5 <script type="text/javascript">
6 function cone_primitive(height, radius, steps) {
7 return nt3d.cone([0,0,0], [0,0,height], radius, steps);
8 }
9 var params = [["Height", 100],
10 ["Radius", 50],
11 ["Steps", 30]];
12 </script>
13 </head>
14 <body onload="nt3d.framework(cone_primitive, params)">
15 <h1>Cone primitive</h1>
16 <p>There's a cone primitive.</p>
17 </body>
18 </html>