About "RectClipLines", May be this is a bug??? #815
jim-jiang-github
started this conversation in
General
Replies: 1 comment
-
No, AFAICS this isn't a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
C# project, Use nuget Clipper2 1.3.0, net6.0
S1:
Code:
result:
S2:
Code:
result:
Demo:
Clipper2Lib.Test.zip
I wanted to implement polygon cutting. I constructed a rectangle as a special polygon, and then I found that the result of code 1 was not what I wanted. What I wanted was the result of code 2.
The difference between the two codes is that the number of points describing the rectangle is different, but the result of the two codes describing the polygon is the same, but the code 2 fits more meaningless point data.
What is causing the two results to be different? Or am I doing it the wrong way? I want to cut any polygon, and it seems that most polygons are cut fine, except this rectangle.
Beta Was this translation helpful? Give feedback.
All reactions