]> git.scottworley.com Git - nt3d/blame - cone_primitive.html
Name finger_point / params.finger_points
[nt3d] / cone_primitive.html
CommitLineData
1a18e646
SW
1<html>
2 <head>
3 <title>Cone primitive</title>
4 <script type="text/javascript" src="nt3d.js"></script>
5 <script type="text/javascript">
3bafa9bd
SW
6 function cone_primitive(params) {
7 return nt3d.cone([0,0,0], [0,0,params.height], params.radius, params.steps);
1a18e646 8 }
3bafa9bd
SW
9 var params = [["height", 100],
10 ["radius", 50],
11 ["steps", 30]];
1a18e646
SW
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>