]> git.scottworley.com Git - nt3d/blobdiff - box_by_trianglefan.html
Add closed_trianglefan
[nt3d] / box_by_trianglefan.html
index 1972560b4f9beae2b6592a208bb4e43db3ba691e..7d4271b5c6e6892fa191d8b30972337919f8885a 100644 (file)
@@ -14,8 +14,8 @@
         var yz     = [0,    size, size];
         var xyz    = [size, size, size];
        return [].concat(
-         nt3d.trianglefan([origin, x, xz, z, yz, y, xy, x]),
-         nt3d.trianglefan([xyz, yz, z, xz, x, xy, y, yz]));
+         nt3d.closed_trianglefan([origin, x, xz, z, yz, y, xy]),
+         nt3d.closed_trianglefan([xyz, yz, z, xz, x, xy, y]));
       }
       var params = [["Size", 1]];
     </script>