Potential bug when offsetting paths containing a single point. #699
Unanswered
JimBobSquarePants
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Remember that this must be an open path, so the offset specifies the width of the open path (ie a line). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I thought I better ask this here first before raising an issue, but I think I may have found a small bug in how single point paths are handled.
When building the
Rect64
instance here it appears to me that the delta is applied to the given coordinated incorrectly.Clipper2/CSharp/Clipper2Lib/Clipper.Offset.cs
Lines 672 to 683 in 2310524
Given that a path is centered at the offset I would expect the following offset for the left/top/right/bottom parameters.
Have I missed something?
Beta Was this translation helpful? Give feedback.
All reactions