Re: [Therion] XVI commands: xth_me_area_adjust etc.
> 2. 2. 2024 v 20:05, Rich Smith : > > I don't suppose there is any way of inserting an SVG using > xth_me_image_insert? That would be very useful. Rich, anyway you may convert SVG to PNG as part of SexyTopo. Let’s say as CairoSVG Martin ___ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
Re: [Therion] XVI commands: xth_me_area_adjust etc.
Thanks Stacho! That all makes sense now. I think I've managed to get the export working properly with that info. I don't suppose there is any way of inserting an SVG using xth_me_image_insert? That would be very useful. first of all, thanks a lot for the great work on SexyTopo! I like your app a lot. Thanks for all the work on Therion! I'm a big fan. cheers Rich On Sun, 28 Jan 2024 at 22:04, Stacho Mudrak wrote: > Hi Rich, > > first of all, thanks a lot for the great work on SexyTopo! I like your app > a lot. > > Unfortunately, there is no documentation, but the attributes are the > following: > > xth_me_area_adjust - where Xmin, Ymin and > Xmax, Ymax are cartesian coordinates of lower left and upper right corners > of drawing area > xth_me_area_zoom_to - where is the default zoom factor, when > drawing is open in xtherion. Should be 25,50,100,200,400. > xth_me_image_insert { } { } > {} 0 {} > is the position of the 0,0 point of XVI coordinate system >- 0 image is hidden / 1 image is shown >- image gamma >- root station name (if XVI is changed during compilation, this > station keeps its position relative to the entire drawing). Can be omitted. >- name of image file > 0 {} - image identifiers, can be 0 {} for all images - if it is like > this, it will be calculated automatically > > HTH, S. > > > On Fri, 26 Jan 2024 at 14:12, Rich Smith wrote: > >> Hi Therion >> >> I'm the author of cave surveying app SexyTopo, and I'm trying to write a >> better Therion exporter. Previously I'd kind of hacked an exporter that did >> an approximate job, but I'm rewriting it and trying to do a better job. >> >> I understand I should generate an XVI file for each projection that >> represents the sketch. I then need to set this in the th2 file with some >> commands. For example: >> >> ##XTHERION## xth_me_area_adjust -132.0 -156.10532659555793 >> 1768.2371519518056 726.0 >> ##XTHERION## xth_me_area_zoom_to 100 >> ##XTHERION## xth_me_image_insert {950.6824683592552 1 1.0} >> {267.841199967364 5} {blaengwynlais plan.xvi} 0 {} >> >> Are these documented anywhere? It seems like xth_me_area_adjust sets the >> dimensions of the image, and xth_me_image_insert specifies the position and >> filename, but I'm not clear what all the values represent. >> >> Many thanks for any pointers! >> Rich >> ___ >> Therion mailing list >> Therion@speleo.sk >> https://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] XVI commands: xth_me_area_adjust etc.
> 28. 1. 2024 v 23:03, Stacho Mudrak : > > cartesian coordinates of lower left and upper right corners of drawing area in pixels! M. ___ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
Re: [Therion] XVI commands: xth_me_area_adjust etc.
Hi Rich, first of all, thanks a lot for the great work on SexyTopo! I like your app a lot. Unfortunately, there is no documentation, but the attributes are the following: xth_me_area_adjust - where Xmin, Ymin and Xmax, Ymax are cartesian coordinates of lower left and upper right corners of drawing area xth_me_area_zoom_to - where is the default zoom factor, when drawing is open in xtherion. Should be 25,50,100,200,400. xth_me_image_insert { } { } {} 0 {} is the position of the 0,0 point of XVI coordinate system - 0 image is hidden / 1 image is shown - image gamma - root station name (if XVI is changed during compilation, this station keeps its position relative to the entire drawing). Can be omitted. - name of image file 0 {} - image identifiers, can be 0 {} for all images - if it is like this, it will be calculated automatically HTH, S. On Fri, 26 Jan 2024 at 14:12, Rich Smith wrote: > Hi Therion > > I'm the author of cave surveying app SexyTopo, and I'm trying to write a > better Therion exporter. Previously I'd kind of hacked an exporter that did > an approximate job, but I'm rewriting it and trying to do a better job. > > I understand I should generate an XVI file for each projection that > represents the sketch. I then need to set this in the th2 file with some > commands. For example: > > ##XTHERION## xth_me_area_adjust -132.0 -156.10532659555793 > 1768.2371519518056 726.0 > ##XTHERION## xth_me_area_zoom_to 100 > ##XTHERION## xth_me_image_insert {950.6824683592552 1 1.0} > {267.841199967364 5} {blaengwynlais plan.xvi} 0 {} > > Are these documented anywhere? It seems like xth_me_area_adjust sets the > dimensions of the image, and xth_me_image_insert specifies the position and > filename, but I'm not clear what all the values represent. > > Many thanks for any pointers! > Rich > ___ > Therion mailing list > Therion@speleo.sk > https://mailman.speleo.sk/listinfo/therion > ___ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
[Therion] XVI commands: xth_me_area_adjust etc.
Hi Therion I'm the author of cave surveying app SexyTopo, and I'm trying to write a better Therion exporter. Previously I'd kind of hacked an exporter that did an approximate job, but I'm rewriting it and trying to do a better job. I understand I should generate an XVI file for each projection that represents the sketch. I then need to set this in the th2 file with some commands. For example: ##XTHERION## xth_me_area_adjust -132.0 -156.10532659555793 1768.2371519518056 726.0 ##XTHERION## xth_me_area_zoom_to 100 ##XTHERION## xth_me_image_insert {950.6824683592552 1 1.0} {267.841199967364 5} {blaengwynlais plan.xvi} 0 {} Are these documented anywhere? It seems like xth_me_area_adjust sets the dimensions of the image, and xth_me_image_insert specifies the position and filename, but I'm not clear what all the values represent. Many thanks for any pointers! Rich ___ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion