Re: [Therion] Hatching profiles and extended elevations

2020-04-18 Thread Tarquin Wilton-Jones via Therion
> for the hatches:
> maybe you could do a custom area symbol and use it with "clip off"
> option. I don't know if this is supported, but it might work. You could
> try it with some other area first...


Another option is to make the wall:bedrock line have rays pointing at an
angle (using a strict angle, not the angle of the line) but cutafter the
line itself. But I think this might be extremely tricky to implement,
and I can't think of an an easy way right now. The issue would be tight
corners, where it is simply not possible to do all the clipping correctly.

You could though define an area between the wall line itself, and a path
that you calculate (using sharp corner avoidance) outside the wall line:
https://therion.speleo.sk/wiki/metapost#shuttering_two_parallel_lines
Then fill that area using a hatching pattern. That could actually work,
and not be totally insane. However, your issue would be when you change
from one line to another - at that point, the fill areas might not match
up perfectly, and you might get unhatched gaps. It would only work for
lines that you have redefined to have that cool fill pattern. Maybe
someone will feel inspired to make a proof of concept...
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Hatching profiles and extended elevations

2020-04-18 Thread Benedikt Hallinger

Hello,
for the hatches:
maybe you could do a custom area symbol and use it with "clip off" 
option. I don't know if this is supported, but it might work. You could 
try it with some other area first...


And the section arrows are easy by a line option (see thbook p. 29):
"direction  ▷ can be used only with the 
section type.
It indicates where to put a direction arrow on the section line. None is 
default."



Am 2020-04-18 22:06, schrieb Roger Schuster:

Hello cavers,

at least in Germany it is/was usual to add hatching to extended
elevations and profiles (cross sections) like in the following
example:

I guess it will be difficult to do this in Therion because the
hatching is outside of the passage and will be clipped but anyway: Is
there a way to achieve this?

Is it possible to add an arrow to lines of type section indicating the
viewing direction like in this example:

Thank you!

Best regards,

Roger
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Sketches on doesn't work / legacy survey

2020-04-18 Thread Bruce Mutton
> As you may see, your .th2 file include only those three stations (and
sketch). Probably it is bug in Therion that it not allows to hide stations
from the final output. I may imagine the reason - MetaPost works with one
scrap in time to interpret and draw that particular scrap. When it has
nothing in scrap it will produce error.

 

> symbol-hide group cave-centerline will cause an error, because there is
then no scrap to draw (Therion must have at least a scrap or a centreline to
draw - seems that scrap station points and images don't count).

 

I think it is a bug.  If the user hides all of the centreline objects, and
also hides all scrap objects (or something like that), then Therion should
trap the error and exit in a controlled manner, rather than letting metapost
get in a tangle and produce a mess of messages until it finally crashes.

 

Thanks for your insights Benoit, I had not thought of your approaches and
they helped me make some mental connections.  I guess redefining metapost
for 'area dimensions' is the same as specifying 'walls off' in the survey
file.

 

Bruce

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Sketches on doesn't work / legacy survey

2020-04-18 Thread Benoit Martinez
Hello Roger

if you use the symbol-hide point station, the scrap turn "empty" and the
TeX interpreter seems to be unable to get the size of the map...


if you want hide the stations points, you have to redefine the p_station
macro to do not draw the symbol in your layout :

  code metapost
def p_station (expr p, m, t)(text flags) = enddef;
  endcode

and if you want to use the "symbol-hide point station", you must add an
object in your scrap, like a "point entrance" or maybe some other object
without outline, but with clip off option

As same way, if you want hide the "artefact" when the survey lines aren't
hidden, just redefine the area dimensions :

code metapost
  def a_dimensions (expr p) = enddef; # don't draw the LRUD enveloppe
endcode

Benoit




*Benoit MARTINEZ - *mz.ben...@gmail.com




Le ven. 17 avr. 2020 à 21:12, Roger Schuster  a écrit :

> Hello cavers,
>
> finally I got it working and now I also can provide a complete example:
>
>
> 
> 
>
> (link will expire in seven days).
>
> To avoid the white artifact (see file kolkhoehle_artifact.pdf) it is
> necessary *not* to hide the survey stations! As soon as you use either
> the attribute -visibility off or use symbol-hide point station in your
> layout you will have a white trapezoid on the final pdf map. Only hiding
> the survey line is possible. As long as the stations are visible the
> resulting map is fine (see kolkhoehle_ok.pdf). Btw. symbol-hide group
> cave-centerline causes an error.
>
> Regards,
>
> Roger
> Am 13.04.2020 um 11:20 schrieb Roger Schuster:
>
> Hello cavers,
>
> currently I try to work with some legacy survey which are the original
> survey data and the final map with scale bar but without marked stations.
> My intention is to geo-reference the existing map (i.e. attaching the
> entrance location to the UTM grid) and use it in a cave atlas of the area.
> I don't want to redraw the whole map in Therion.
>
> I followed the directions given in the therion wiki and entered the survey
> data and the resulting model in Loch looks fine and plausible. After that I
> created a scrap with the scanned map (projection plan) and scaled it using
> the scale bar and the scaling tool of Xtherion map editor. I marked the
> location of the first survey station at the cave entrance and in the layout
> section of my thconfig I turned on sketch export. Unfortunately it doesn't
> work. The generated pdf only contains the map header (with wrong length and
> depth statistics btw!) and a short part of the first survey shot. I expect
> the whole scanned background image to be visible and in scale in the pdf.
> Honestly said I never got the "sketches on" working with any of my old and
> new maps. What I am doing wrong? Any pointer to the right direction is
> highly appreciated.
>
> Best regards and thanks in advance,
>
> Roger
>
> ___
> Therion mailing 
> listTherion@speleo.skhttps://mailman.speleo.sk/listinfo/therion
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Sketches on doesn't work / legacy survey

2020-04-18 Thread Martin Sluka via Therion

> 17. 4. 2020 v 21:12, Roger Schuster :
> 
> To avoid the white artifact (see file kolkhoehle_artifact.pdf) it is 
> necessary not to hide the survey stations! As soon as you use either the 
> attribute -visibility off or use symbol-hide point station in your layout you 
> will have a white trapezoid on the final pdf map. Only hiding the survey line 
> is possible. As long as the stations are visible the resulting map is fine 
> (see kolkhoehle_ok.pdf). Btw. symbol-hide group cave-centerline causes an 
> error.

As you may see, your .th2 file include only those three stations (and sketch). 
Probably it is bug in Therion that it not allows to hide stations from the 
final output. I may imagine the reason - MetaPost works with one scrap in time 
to interpret and draw that particular scrap. When it has nothing in scrap it 
will produce error.

Martin

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion