Alex Schroeder 🐝 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.

Currently struggling with producing for labelling rivers. I need a curve offset to place the label on an invisible path next to the river instead of on the river itself. So now I need to implement the heuristic approximation method proposed by Tiller and Hanson. This involves a lot of paper and ink.
math.stackexchange.com/a/46703
Image 1 shows the solution I am unhappy with. Image 2 shows the heuristic with simple control point translation. That's not good enough.

@kensanata Can you not offset (a copy of) the River Curve itself (by a constant x+2, y+2, or figure out the "normal" of the river and offset in that direction), and just use that?

@jos That only works for straight rivers. In curves, a different section of the river will now intersect the offset curve and the label on it.

Alex Schroeder 🐝 @kensanata

@jos Hm, I guess if you argued that all the labels will be short then the river segment they will be placed on might be straight enough. I’d have to give it a try with some generated river names.