From a4cc880243177697bfa0a1e9091bfd12a60366ab Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 18 Dec 2012 02:07:49 -0800 Subject: [PATCH] Closed quadstrip: Munge the input, not the output This is cleaner. --- nt3d.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nt3d.js b/nt3d.js index 623c0f1..ae17af1 100644 --- a/nt3d.js +++ b/nt3d.js @@ -41,7 +41,7 @@ nt3d = { return result; }, closed_quadstrip: function(strip) { - return nt3d.quadstrip(strip).concat(nt3d.quad(strip[strip.length-2], strip[strip.length-1], strip[1], strip[0])); + return nt3d.quadstrip(strip.concat([strip[0], strip[1]])); }, sub: function(a, b) { return [a[0] - b[0], -- 2.44.1