shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7294 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/Intersections.h b/experimental/Intersection/Intersections.h
index c8a142a..843957d 100644
--- a/experimental/Intersection/Intersections.h
+++ b/experimental/Intersection/Intersections.h
@@ -12,17 +12,14 @@
class Intersections {
public:
- Intersections()
- : fUsed(0)
- , fUsed2(0)
- , fCoincidentUsed(0)
- , fFlip(false)
- , fUnsortable(false)
+ Intersections()
+ : fFlip(0)
, fSwap(0)
{
// OPTIMIZE: don't need to be initialized in release
bzero(fT, sizeof(fT));
bzero(fCoincidentT, sizeof(fCoincidentT));
+ reset();
}
void add(double one, double two) {
@@ -82,6 +79,12 @@
return fUsed == fUsed2;
}
+ // leaves flip, swap alone
+ void reset() {
+ fUsed = fUsed2 = fCoincidentUsed = 0;
+ fUnsortable = false;
+ }
+
void swap() {
fSwap ^= true;
}