From cfe1bc03295adec103b76b978a5ad34f718d045c Mon Sep 17 00:00:00 2001 From: hkrish Date: Sat, 20 Apr 2013 02:04:51 +0200 Subject: [PATCH] Added some complex test cases --- Boolean.js | 14 +- booleanStudy.html | 407 +++++++++++++++++++++++++++++++++++++++++++++- booleanTests.js | 18 +- 3 files changed, 427 insertions(+), 12 deletions(-) diff --git a/Boolean.js b/Boolean.js index dc9937e8..e26a038b 100644 --- a/Boolean.js +++ b/Boolean.js @@ -297,6 +297,8 @@ function computeBoolean( _path1, _path2, operator ){ graph = graph.concat( makeGraph( path2, 2, 1, true ) ); } + console.log( "Total curves: " + graph.length ); + // Sort function to sort intersections according to the 'parameter'(t) in a link (curve) function ixSort( a, b ){ return a._parameter - b._parameter; } @@ -321,13 +323,13 @@ function computeBoolean( _path1, _path2, operator ){ for (k = 0, l=loc.length; k Boolean Study - +