[Therion] Issue with using both LRUD polygons and scrap morphing to XVI output

Andrew McLeod andrewclimbing at gmail.com
Wed Jan 14 18:50:23 CET 2026


Hi all,

Complicated subject line, but I'm trying to be too clever and it's _almost_
working but not quite...

All files for this test case are here:
https://drive.google.com/drive/folders/1LUy_q9PMTLYjgSbxqE_3XtzHIpPUojhJ?usp=sharing

Short version: trying to generate LRUD polygons and scaled sketches to one
XVI file doesn't work properly as seen in wrong_positioning_in_xvi.th2.

Long version:
I have a set of (unscaled) sketches. I also have LRUD data. I have scanned
the sketches. I don't want to draw directly on the sketches in xtherion as
the passage widths will be wrong. I have discovered the functionality to
output LRUD polygons as an XVI output which would probably be sufficient,
but I was hoping to get the LRUD polygon output and the morphed sketches to
both appear in the XVI so that I can do the drawing of walls in xtherion
onto that XVI image.

I know about the 'extra' point type, but I haven't used it in these
examples for simplicity.

*Input files:*
1-9p.png - the scan of the sketch
Shredder.th - the th file containing the centerline and LRUDs
Shredder_sketches-1-9p.th2 - a th2 file plotting stations onto the 1-9p.png
image
Shredder.thconfig - a thconfig file that outputs a number of things (using
scale 1:50 because image quality in the morphed sketch is much, much
better):

*Outputs:*
Produced with 'sketches on':
shredder_sketch_plan.xvi
shredder_sketch_plan.pdf
shredder_sketch_plan.th2
shredder_sketch_plan.svg

Produced without 'sketches on':
shredder_lrud-plan.xvi

Now, the shredder_lrud-plan.xvi file works fine, but obviously doesn't
include the sketches.
The shredder_sketch_plan.th2 is a bit useless; the sketch doesn't match up
to the stations and no LRUD polygons are drawn, but I don't really care
about that.
Now the shredder_sketch_plan.pdf and shredder_sketch_plan.svg *actually
work* - the LRUD polygons are drawn over the correctly morphed sketch and
everything lines up. Unfortunately the PDF output is very pale with
yellow-tinted polygons which are a bit tricky to see and obviously going
from PDF back to an image to draw over in xtherion is a faff although very
doable (assuming xtherion doesn't accept PDF as an image format). The SVG
image is darker, but the yellow boxes are not transparent and so obscure
the sketch. Neither have a centerline showing stations, so not useful to
draw on anyway.

The XVI output is much, much better to look at for drawing on - the sketch
appears in detail, and the shaded but transparent blue polygons appear with
a clear centreline. The only issue is that the sketch and the LRUD
polygons/centerlines are misaligned and misscaled, as can be seen in the
file wrong_positioning_in_xvi.th2.

I presume this is _supposed_ to work, since things are correctly aligned in
the SVG and PDF outputs?

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20260114/5910166c/attachment.htm>


More information about the Therion mailing list