-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PathArcTo no longer accepts counter-clockwise arcs #4030
Comments
I want to let you know, I'm working on a fix to that. Issue should be addressed soon. Sorry for inconvenience. |
Thank you! No inconvenience at all, I know full well that it's not an "intended" feature to draw concave shapes, but this method is a lot easier than trying to add an efficient, general-purpose concave polygon triangulation algorithm. |
Arc functions now handle counter-clockwise direction. |
Thank you @thedmd for the fix! |
Version/Branch of Dear ImGui:
Version: 1.82
Branch: master on tag
v1.82
Back-end/Renderer/Compiler/OS
Back-ends: OpenGL3 + SDL2
Compiler: GNU GCC 10.2.0
Operating System: Solus Linux
My Issue/Question:
With commit e45847d,
ImDrawList::PathArcTo
(and more specificallyImDrawList::_PathArcToN
) asserts thata_min <= a_max
, enforcing clockwise path arc order. This breaks the code in #434, and more specifically breaks production code in Pioneer which is using drawing commands almost identical to Horrowind's code in the above issue.The below code (sorry, it's long) works perfectly as long as that assertion in
_PathArcToN
is commented out, and has worked since at least ImGui 1.6x. I'd like to see a more general fix for this issue that re-enables counter-clockwise arcs using the auto-tessellatedPathArcTo
function, or at least some support in the DrawList API for drawing wide partial arcs with uniform thickness gaps between them.Screenshots/Video
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: