You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does appear to be something left in from when I was testing this, and it appears to mask a bug, as removing it doesn't go well:
Seems to be because find_extremities() returns unordered results, so the subdivisions are all over the place later on. The purpose of this is to reduce the number of subdivisions around sections of the curve that can't be scaled around a point - a downside of the scaling algorithm is it always subdivides the same number of times even if the resulting curve can be constructed without quite so many sections.
I've been wondering if there's an even better approach to subdividing the curve: the scaling algorithm requires the curve to be subdivided into sections such that the normals all converge on a roughly equidistant point: better algorithms subdivide less (but anything that subdivides will eventually find curves good enough to use so it's hard to tell if any given algorithm is 'best' or not).
Anyway, this should now be fixed so it works as it was intended (improving other aspects of the algorithm is at earliest a v0.7 thing I think)
flo_curves/src/bezier/offset_scaling.rs
Line 154 in ec1d782
Why is there a
|| true
? This is either a temporary fix and should be commented or it's a bug.Can you clarify this please?
The text was updated successfully, but these errors were encountered: