diff options
author | 2012-03-30 18:47:02 +0000 | |
---|---|---|
committer | 2012-03-30 18:47:02 +0000 | |
commit | 198e054b33051a6cd5f606ccbc8d539cefc5631f (patch) | |
tree | a2a05181d0d6b4b8291c2764188c63b2e6aa4a14 /experimental/Intersection/QuadraticIntersection.cpp | |
parent | 06cd732eff09d8f417ced2779e216d6ce6420f59 (diff) |
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3566 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/Intersection/QuadraticIntersection.cpp')
-rw-r--r-- | experimental/Intersection/QuadraticIntersection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/experimental/Intersection/QuadraticIntersection.cpp b/experimental/Intersection/QuadraticIntersection.cpp index 634d083cbd..f8c43b5e5d 100644 --- a/experimental/Intersection/QuadraticIntersection.cpp +++ b/experimental/Intersection/QuadraticIntersection.cpp @@ -86,16 +86,22 @@ bool intersect(double minT1, double maxT1, double minT2, double maxT2) { double newMinT1 = interp(minT1, maxT1, minT); double newMaxT1 = interp(minT1, maxT1, maxT); split = (newMaxT1 - newMinT1 > (maxT1 - minT1) * tClipLimit) << 1; +#define VERBOSE 0 +#if VERBOSE printf("%s d=%d s=%d new1=(%g,%g) old1=(%g,%g) split=%d\n", __FUNCTION__, depth, splits, newMinT1, newMaxT1, minT1, maxT1, split); +#endif minT1 = newMinT1; maxT1 = newMaxT1; } else { double newMinT2 = interp(minT2, maxT2, minT); double newMaxT2 = interp(minT2, maxT2, maxT); split = newMaxT2 - newMinT2 > (maxT2 - minT2) * tClipLimit; +#define VERBOSE 0 +#if VERBOSE printf("%s d=%d s=%d new2=(%g,%g) old2=(%g,%g) split=%d\n", __FUNCTION__, depth, splits, newMinT2, newMaxT2, minT2, maxT2, split); +#endif minT2 = newMinT2; maxT2 = newMaxT2; } |