[Therion] Custom map connections
Tarquin Wilton-Jones
tarquin.wilton-jones at ntlworld.com
Sat Sep 10 08:01:58 CEST 2022
Hi Axel,Yes. Therion's bug is annoying. I have a workaround. It's a hack, but it works.I have a custom u point that has to appear in the object list just below the map connection point. The code reads the attributes from the custom point and stores them in a global variable. The map-connection code uses that variable if it cannot find attributes on the map connection point itself.My arrows have multiple colours. I will share the CC0 code later once I am back in front of my computer.Hack hack hack...Tarquin
-------- Original message --------From: Axel <dropstone at gmx.de> Date: 10/09/2022 06:45 (GMT+00:00) To: therion at speleo.sk Subject: [Therion] Custom map connections Bonjour all,
some months ago Tarquin opened a request on Github to pass point_mapconnection attributes to the actual l_mapconnection (#434).
I wonder if something happened there?
As caves don't know how to behave, I have one at the minute that has -just- 5 passages above/underneath each other. Different styled map-connections would make it so much easier to understand the plan and follow the route in the cave (eg make the main ones thicker, change color for overlying/underlying passages).
has anyone found a way around it?
cheers,
Axel
from the mailing-list:
-------
Tarquin Wilton-Jones via Therion Thu, 07 Jul 2022 10:04:09 -0700
Hi folks,
I have a challenge, presented to me by some users of one of our surveys.
We have a cave with layers horribly stacked above each other (10
passages all crossing the same point!). Simple solution; use map offsets
to put them all side by side. Use map connection arrows to show what
connects to what.
That's all good, but they find the default connection arrow hard to see.
I can redefine l_mapconnection to create my own arrows. Great!
But here's the challenge; they want us to show the difference between an
unimportant connection, and a major "follow this route" connection. Eg.
minor ones in grey, major route in red.
I have tried everything I can think of with the mapconnection point: id,
scale, rotation, -attr etc., but Therion is not creating a
p_mapconnection. it creates a l_mapconnection, and passes it a path to
create the line. The attributes are all completely ignored.
Normally, I would use "-attr type major", but that cannot work here,
because Therion just ignores it. In my opinion, this is a limitation
that should be fixed.
The only solution I can think of, is to put *two* mapconnection points.
The l_mapconnection code can then see if the current path matches the
previous path, and if so, draw it in red. But this is such a horrible
hack, and prone to failure in future if someone does not realise why
there are two points, and why they have to follow on from each other.
Can anyone think of a better workaround?
Cheers,
Tarquin
_______________________________________________
Therion mailing list
Therion at speleo.sk
https://mailman.speleo.sk/listinfo/therion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20220910/85678531/attachment.htm>
More information about the Therion
mailing list