Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ofPath::arc adding radial line #5236
Note this issue appears with current master.
The following code produces an unexpected straight line:
But ofPolyline::arc looks correct.
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 :)