Commits

Anonymous committed 5b65302

picking a hopefully better test point

Comments (0)

Files changed (2)

VectorBoolean/FBBezierContour.m

         return NSZeroPoint;
     FBContourEdge *edge = [_edges objectAtIndex:0];
     FBContourEdge *stopValue = edge;
+    BOOL allPointsAreShared = NO;
     while ( edge.isStartShared ) {
         edge = edge.next;
-        if ( edge == stopValue )
+        if ( edge == stopValue ) {
+            allPointsAreShared = YES;
             break;
+        }
     }
+    
+    if ( allPointsAreShared )
+        return [edge.curve pointAtParameter:0.5 leftBezierCurve:nil rightBezierCurve:nil];
+    
     return edge.curve.endPoint1;
 }
 

VectorBoolean/MyDocument.m

 {
     self = [super init];
     if (self) {
-        _resetAction = @selector(addComplexShapes);
+        _resetAction = @selector(addCircleOnRectangle);
     }
     return self;
 }