]> git.scottworley.com Git - nt3d/blobdiff - nt3d.js
Add closed_trianglefan
[nt3d] / nt3d.js
diff --git a/nt3d.js b/nt3d.js
index ae17af1a01225f486e8fd1bb3cddb7d4ce2b910c..daa628b4c2bd5cfc79483dc9a1a8959e3da195e2 100644 (file)
--- a/nt3d.js
+++ b/nt3d.js
@@ -30,6 +30,9 @@ nt3d = {
                }
                return result;
        },
+       closed_trianglefan: function(fan) {
+               return nt3d.trianglefan(fan.concat([fan[1]]));
+       },
        quadstrip: function(strip) {
                if (strip.length % 2 != 0) {
                        alert("quadstrip length not divisble by 2!");