From c2269d916ffa10e162d23bbe6c2b47d06ee4c9c4 Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Wed, 28 Nov 2018 13:27:45 -0800 Subject: [PATCH] use even-odd winding rule for most boolean ops (excception is crossings removed). Disable some debug logs and more specific handling of correcting initial winding value. --- BezierKit/Library/AugmentedGraph.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/BezierKit/Library/AugmentedGraph.swift b/BezierKit/Library/AugmentedGraph.swift index b6509100..ffa2e59b 100644 --- a/BezierKit/Library/AugmentedGraph.swift +++ b/BezierKit/Library/AugmentedGraph.swift @@ -132,7 +132,8 @@ internal class PathLinkedListRepresentation { } fileprivate func markEntryExit(_ path: Path, _ nonCrossingComponents: inout [PathComponent], useRelativeWinding: Bool = false) { - let fillRule = PathFillRule.winding + let fillRule: PathFillRule = useRelativeWinding ? .winding : .evenOdd +// let fillRule = PathFillRule.winding for i in 0..