Hnns Hlgr Rtz is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Hnns Hlgr Rtz @sciss

/*
ok, here's the idea:

- for each possible page-folding
config:
- create a GNG from the
possible space occupied by the
edges around the paragraphs
- turn it into a MST
- locate the possible starting and
stopping points
- find the path
- create a bezier along it
- make sure we don't overlap the
paragraphs, otherwise
rerun with stronger boundary
padding
- render the edge text to svg
- create a place-on-path version
of it
- render it to PDF
*/

I merely have to implement :-/

· Web · 1 · 0

That's the GNG output for unfolded six pages.

I adopted some else's Dijkstra implementation, and it's bloody slow 💤

Given the nature of my project, I should rather use ant colony optimisation… Anyway, too late, thing is running...

The bloody neural gas crossed the boundary, and Mr Dijkstra was quick to follow :-/

Getting there (still)... some margins are off, sigh

@saper Well, a hackish SVG munching, thrown together with some LaTeX and Tikz ;)

@sciss looks like trying to make rounds around PostScript :) I have to admit I fell in love the first time I did a 2D vector project in PS.