Currently struggling with producing #SVG for labelling rivers. I need a #Bรฉzier 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.
https://math.stackexchange.com/a/467038
Image 1 shows the solution I am unhappy with. Image 2 shows the heuristic with simple control point translation. That's not good enough.
@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. https://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.
https://campaignwiki.org/hex-describe
#textmapper #hexdescribe #rpg #map #generator
@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.
@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!