the new segment intersection algorithm #591
-
I have updated to the latest code and encountered an issue. When I use the RectClip method, there are extra vertices in the resulting graphics. After debugging, it seems the problem lies in the GetIntersectPoint method. I read the Wikipedia page referenced in the comments:https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection I don't fully understand the current implementation. I made some modifications following the description on Wikipedia,problem was solved.
I didn't do a lot of testing, so I'm not sure if there are other issues. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please provide an example.
I'm afraid your proposed solution would be less satisfactory with the other clipping routines. |
Beta Was this translation helpful? Give feedback.
-
Very awkward, somehow there was an error when I updated the code. #568 |
Beta Was this translation helpful? Give feedback.
Very awkward, somehow there was an error when I updated the code. #568