Skip to content

Commit f9ef430

Browse files
Fix build
1 parent 46813d9 commit f9ef430

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/PolygonClipper/PolygonClipper.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ public Polygon Run()
153153
}
154154

155155
Box2 clippingBB = new(min, max);
156-
if (TryTrivialOperationForNonOverlappingBoundingBoxes(subject, clipping, subjectBB, clippingBB, operation,
157-
out result))
156+
if (TryTrivialOperationForNonOverlappingBoundingBoxes(subject, clipping, subjectBB, clippingBB, operation, out result))
158157
{
159158
return result;
160159
}
@@ -742,7 +741,7 @@ private static Polygon ConnectEdges(List<SweepEvent> sortedEvents, SweepEventCom
742741
for (int i = 0; i < sortedEvents.Count; i++)
743742
{
744743
SweepEvent se = sortedEvents[i];
745-
if ((se.Left && se.InResult))
744+
if (se.Left && se.InResult)
746745
{
747746
resultEvents.Add(se);
748747
}
@@ -831,7 +830,6 @@ private static Polygon ConnectEdges(List<SweepEvent> sortedEvents, SweepEventCom
831830

832831
Polygon polygon = new();
833832

834-
835833
for (int i = 0; i < result.ContourCount; i++)
836834
{
837835
Contour contour = result[i];

0 commit comments

Comments
 (0)