<title>Sphere primitive</title>
<script type="text/javascript" src="nt3d.js"></script>
<script type="text/javascript">
- function sphere_primitive(radius, lattitude_steps, longitude_steps) {
- return nt3d.sphere([0,0,0], radius, lattitude_steps, longitude_steps);
+ function sphere_primitive(params.) {
+ return nt3d.sphere([0,0,0], params.radius, params.lattitude_steps, params.longitude_steps);
}
- var params = [["Radius", 1],
- ["Lattitude steps", 20],
- ["Longitude steps", 20]];
+ var params = [["radius", 1],
+ ["lattitude_steps", 20],
+ ["longitude_steps", 20]];
</script>
</head>
<body onload="nt3d.framework(sphere_primitive, params)">