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
I really like using spiro splines for smooth curves in my drawings. However, I'd often want to use closed spiro splines, which Ipe doesn't support (falls back to a closed B-spline).
As a proof of concept, I tried replacing false by true in the SpiroCPsToBezier2 call on line 796 of ipegeo.cpp. This shows that editing closed spiro splines could in principle work just fine without further changes:
Screencast.From.2026-04-30.14-34-18.mp4
Of course this is not a proper solution: now all non-closed spiro splines are rendered as closed ones! I suppose a backwards-incompatible change of the file format would be necessary, with a new path type for closed spiro splines.
If you agree this would be a useful feature to have, I would be willing to try implementing this properly, and open a pull request if I can get it to work.
I really like using spiro splines for smooth curves in my drawings. However, I'd often want to use closed spiro splines, which Ipe doesn't support (falls back to a closed B-spline).
As a proof of concept, I tried replacing
falsebytruein theSpiroCPsToBezier2call on line 796 ofipegeo.cpp. This shows that editing closed spiro splines could in principle work just fine without further changes:Screencast.From.2026-04-30.14-34-18.mp4
Of course this is not a proper solution: now all non-closed spiro splines are rendered as closed ones! I suppose a backwards-incompatible change of the file format would be necessary, with a new path type for closed spiro splines.
If you agree this would be a useful feature to have, I would be willing to try implementing this properly, and open a pull request if I can get it to work.