-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ofPath::arc adding radial line #5236
Comments
So the issue seems to be that ofPath::addCommand adds a moveTo command if a command list hasn't started with one. Normally this is fine, but with A working solution is to preempt the automatic adding of the moveTo in ofPath::addCommand by doing one within ofPath::arc that sets the moveTo to the correct position.
Can't see any downsides to this approach, but would appreciate others double checking :) |
this seems to be related too. trying to think of how to solve this. working with circles and ofPath at the moment. |
I also had to add tthe fix from @ofTheo to arcNegative. But then it works. Any news on this issue? |
can you send a PR with the fixes? |
Remove the first command from ofPath, when the path command is arc. fixes openframeworks#5236
This ellipse will give the same issue - The PR does not fix that. I'm not sure that should be considered a bug, since you could just moveTo 450, 150 and then center the ellipse att 400, 150.
|
Remove the first command from ofPath, when the path command is arc. fixes #5236 #changelog #graphics
…eworks#6224) Remove the first command from ofPath, when the path command is arc. fixes openframeworks#5236 #changelog #graphics
From the forums:
https://forum.openframeworks.cc/t/arc-without-drawing-radius-lines/24343
Note this issue appears with current master.
The following code produces an unexpected straight line:
But ofPolyline::arc looks correct.
The text was updated successfully, but these errors were encountered: