<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2025085992;
        mso-list-type:hybrid;
        mso-list-template-ids:-232908286 1777218912 336134147 336134149 336134145 336134147 336134149 336134145 336134147 336134149;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:90.0pt;
        text-indent:-18.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:126.0pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:162.0pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:198.0pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:234.0pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:270.0pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:306.0pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:342.0pt;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:378.0pt;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>The thread ‘Aven colour by loop error’ resolved my initial query (<a href="https://www.mail-archive.com/therion@speleo.sk/msg06282.html">I understand a solution has been pushed to the repo</a>), and then got a bit off topic and discussed centreline and drawing distortions as shown with ‘debug’, which seems to be not quite the same thing, so I have started a new topic here.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have used debug to troubleshoot gross drawing errors for one or two scraps at a time, but I have never considered that it might be useful to look at centrelines or whole drawing projects.  It might not be, but I want to explore that here, because I don’t understand it well.  Maybe it would be good to come up with a layout that facilitates emphasising the debug information. <o:p></o:p></p><p class=MsoNormal>I have added lots of links to this mail, so if your mail client has stripped the links, you will have to view it from the wiki start page or the mail archive <a href="https://www.mail-archive.com/therion@speleo.sk/">https://www.mail-archive.com/therion@speleo.sk/</a> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Therion’s debug features are described in the <a href="https://therion.speleo.sk/wiki/tbe:wiki5?s%5b%5d=debug#debug">wiki here</a> a bit more fully than in the Therion Book.  A clarification I would add to that description, is that there are black and yellow point pairs for each scrap (and centreline??)<o:p></o:p></p><p class=MsoNormal>But there are some questions I have, like;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>What is the difference between debug on and debug all? (nothing that I have noticed)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Why is there a debug off, and how would one use it? (unless one wants to be sure that the default ‘off’ is enforced, which is a good enough reason)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Is it possible have debug all, but without the red first and blue second transformations? (I have partially achieved that I think, but my solution is not as good as Martin’s)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Orange points are described as points with maximal change in distance – I don’t seem to have any orange dots, just lots of red dots located at every symbol.  Are there really orange dots with the current Therion version?  Is there one orange dot per scrap, or only one for the entire exported map?<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>What are the meanings that can be gained from the yellow and black dot configurations?<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>What I have deduced is;<o:p></o:p></p><ul style='margin-top:0cm' type=disc><li class=MsoListParagraph style='margin-left:54.0pt;mso-list:l0 level1 lfo1'>Yellow dots over top of black dots indicates no distortion ie perfect.  A small distance between yellow and black is good.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:54.0pt;mso-list:l0 level1 lfo1'>Length of parallel yellow and black lines has no meaning.  Very short lines and very long lines can both occur where there is almost no distortion, and long lines can occur where there is distortion as well.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:54.0pt;mso-list:l0 level1 lfo1'>Yellow and black lines forming triangles, squares or other polygons typically means a significant distortion.<o:p></o:p></li></ul><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>To recap on the previous thread…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Martin Sluka has provided some useful output examples.<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif;color:black;background:white'><a href="https://www.mail-archive.com/therion@speleo.sk/msg06287.html">By the way, is it possible to create a Therion debug with the black, yellow and orange debug features, without the ‘first’, ‘second’ and ‘scrap-names’?</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif;color:black;background:white'>The question of removing the ‘first’ and ‘second’ morphing transformations is not answered, but reducing the text size by adjusting scales and base-scales is a good idea.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif;color:black;background:white'><o:p> </o:p></span></p><p class=MsoNormal>Martin clarified that it would find typos like 1.23m, in place of 12.3m, although where there is no sketch and no loop, I cannot work out how Therion would know that.<o:p></o:p></p><p class=MsoNormal>He posted 4 pairs of useful pdf examples showing errors with centrelines, although for some reason I cannot find the message in the mail-archive, so I have attached them to this message and copied Martin’s example sketch and th file.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:72.0pt'> <span style='mso-fareast-language:EN-NZ'><img border=0 width=479 height=335 style='width:4.9895in;height:3.4895in' id="Picture_x0020_1" src="cid:image002.png@01D29061.DE5BC7B0"></span><o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'>survey error_visualization<br> input nacrt.th2<br> centerline<br>  data normal from to tape compass clino ignoreall<br>  1 2 11 45 -10<br>  2 3 10.5 95 +10 no error<br>  #2 3 10.5 275 +10 backsight<br>  #2 3 1.05 95 +10 typo<br>  #2 3 10.5 65 +10 misreading<br>  3 4 12 100 0<br> endcenterline<br>endsurvey<o:p></o:p></p><p class=MsoNormal style='margin-left:72.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:72.0pt'>outputs without walls and with walls:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Although the attached files appear to show pairs of outputs with only the centreline and ‘centreline plus scrap’ for comparison, they all have the label ‘scrap 1’ so the scraps are clearly present in the compilation for all examples, it’s just that the walls are hidden somehow.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have tried to replicate this with one of my larger projects, and find the following anomalies.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I use the layout below, which essentially just hides the walls (or not), the yellow and black dots are positioned identically for each run, whereas Martins examples clearly show a distinction between ‘centreline only’ behaviour and ‘ centreline + scrap’ behaviour.  How have you hidden your walls Martin, such that they are ignored by the debug dots when hidden?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is the layout I have used, and below that, screen grabs of pdf outputs;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>layout LayoutDistortion<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## Hides most features and emphasises ??centreline and maximal ??drawing errors (but not ??loop errors)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## If used with or after other layouts then behaviour may not be consistent with this layout when used alone!<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## Yellow/black spots indicate maximal distortion  of scrap, regardless of whether line wall (scrap) is 'shown' below<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## Enforce white background and passage infill to reduce colour confusion<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  colour map-bg 100 #white<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  colour map-fg 100 #white  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-colour group all 1 #black symbols<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  opacity 10 #mostly transparent<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  debug all #turns on all debug options, for visible entities only<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## Options to control text size  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  ## Use scale base-scale pair to control text size ratios 2:1 to 10:1 OK<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  scale 1 1000        <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  base-scale 1 200 #set base-scale to smaller number to reduce text size (but increases relative yellow/black dot size)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  ## OR Use fonts_setup to control text size for xs s m l xl respectively<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # code metapost<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # fonts_setup(0.01,0.01,2,3,5); <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## Hide features we don't want to see  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-hide group all  #hides ALL except passage infill colour, and preview-above, below<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-show group cave-centreline<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-show group surface-centreline<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-show line map-connection<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  symbol-hide group text<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## If all rows below commented out, only these entities visible;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## - part centreline and yellow/black spots<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## - scrap names<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>## - full centrelines and all station names for centrelines included in a map definition<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # symbol-show line wall #this adds scrap outlines and red/blue morphing lines to output<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # symbol-show point cave-station #optional, sets up for showing cave only<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # symbol-show point surface-station  #optional, sets up for showing surface only<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  <o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # symbol-show point station #shows and labels all stations and red debug spots<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>  # symbol-show point station:fixed #shows and labels fixed stations only and red debug spots<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endlayout LayoutDistortion<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks for reading this far!<o:p></o:p></p><p class=MsoNormal>I would appreciate any corrections, clarifications, improvements or insights you may have.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-NZ'><img border=0 width=1016 height=657 style='width:10.5833in;height:6.8437in' id="Picture_x0020_2" src="cid:image004.png@01D2905A.CF8BD5B0"></span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-NZ'><img border=0 width=1226 height=650 style='width:12.7708in;height:6.7708in' id="Picture_x0020_3" src="cid:image005.png@01D2905B.1FE6AA80"></span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>