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.
Alex Schroeder ๐Ÿ @kensanata

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.

ยท Web ยท 2 ยท 1

@kensanata wanted to say i *really* love the work you're doing around gaming, UI, and algorithmic processing.

Makes me want to figure out how to turn my business metrics into a campaign!

@sivy Hah. And it makes me want to stop writing code to manage permissions for external clients generating reports for fleet management or call center process design or whatever else I do for money during the day!
Thanks for the kind words. ๐Ÿ˜€

@kensanata What are you building (a map builder, I presume?). Is the code any place public yet?

@klaatu The particular stuff I'm doing is part of Text Mapper. campaignwiki.org/text-mapper/
Right now I'm trying to improve the placement of labels on a rivers and trails. The point is that another tool called Hex Describe generates names for these and I'd like to add them to the map.
campaignwiki.org/hex-describe

@kensanata @klaatu This is all looking so cool and fun! If only I could carve out more time to contribute. Watching closely though; I already use Text Mapper for my campaign. Hat tip - @kensanata

@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.

@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.