3 <title>Sphere primitive
</title>
4 <script type=
"text/javascript" src=
"nt3d.js"></script>
5 <script type=
"text/javascript">
6 function sphere_primitive(params.) {
7 return nt3d.sphere([
0,
0,
0], params.radius, params.lattitude_steps, params.longitude_steps);
9 var params = [["radius",
1],
10 ["lattitude_steps",
20],
11 ["longitude_steps",
20]];
14 <body onload=
"nt3d.framework(sphere_primitive, params)">
15 <h1>Sphere primitive
</h1>
16 <p>There's a sphere primitive.
</p>