Skip to content

Commit 49aaf25

Browse files
Fix build, more cleanup
1 parent 52312a1 commit 49aaf25

4 files changed

Lines changed: 16 additions & 131 deletions

File tree

src/ImageSharp.Drawing/Shapes/PolygonGeometry/Clipper.cs

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/ImageSharp.Drawing/Shapes/PolygonGeometry/ClippingType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
66
/// <summary>
77
/// Defines the polygon clipping type.
88
/// </summary>
9-
public enum ClippingType
9+
internal enum ClippingType
1010
{
1111
/// <summary>
1212
/// Represents a shape to act as a subject which will be clipped or merged.

src/ImageSharp.Drawing/Shapes/PolygonGeometry/JoinWith.cs

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@
33

44
namespace SixLabors.ImageSharp.Drawing.Shapes.PolygonGeometry;
55

6+
/// <summary>
7+
/// Specifies how a vertex should be joined with adjacent paths during polygon operations.
8+
/// </summary>
69
internal enum JoinWith
710
{
11+
/// <summary>
12+
/// No joining operation.
13+
/// </summary>
814
None,
9-
Left,
10-
Right
11-
}
1215

13-
internal enum HorzPosition
14-
{
15-
Bottom,
16-
Middle,
17-
Top
18-
}
16+
/// <summary>
17+
/// Join with the left adjacent path.
18+
/// </summary>
19+
Left,
1920

20-
// Vertex: a pre-clipping data structure. It is used to separate polygons
21-
// into ascending and descending 'bounds' (or sides) that start at local
22-
// minima and ascend to a local maxima, before descending again.
23-
[Flags]
24-
internal enum PointInPolygonResult
25-
{
26-
IsOn = 0,
27-
IsInside = 1,
28-
IsOutside = 2
21+
/// <summary>
22+
/// Join with the right adjacent path.
23+
/// </summary>
24+
Right
2925
}

src/ImageSharp.Drawing/Shapes/PolygonGeometry/PolygonClipper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ private void DoSplitOp(OutRec outrec, OutPt splitOp)
10241024
OutPt nextNextOp = splitOp.Next.Next;
10251025
outrec.Pts = prevOp;
10261026

1027-
PolygonClipperUtilities.GetIntersectPoint(
1027+
_ = PolygonClipperUtilities.GetLineIntersectPoint(
10281028
prevOp.Point, splitOp.Point, splitOp.Next.Point, nextNextOp.Point, out Vector2 ip);
10291029

10301030
float area1 = Area(prevOp);

0 commit comments

Comments
 (0)