<title>Cone primitive</title>
<script type="text/javascript" src="nt3d.js"></script>
<script type="text/javascript">
- function cone_primitive(height, radius, steps) {
- return nt3d.cone([0,0,0], [0,0,height], radius, steps);
+ function cone_primitive(params) {
+ return nt3d.cone([0,0,0], [0,0,params.height], params.radius, params.steps);
}
- var params = [["Height", 100],
- ["Radius", 50],
- ["Steps", 30]];
+ var params = [["height", 100],
+ ["radius", 50],
+ ["steps", 30]];
</script>
</head>
<body onload="nt3d.framework(cone_primitive, params)">