<html><body><div>What is the difference from standard definition? </div><div><br data-mce-bogus="1"></div><div>That standard definition was created to draw steps in caves for tourists where such steps are in different shapes and with irregular width.</div><div><br data-mce-bogus="1"></div><div>Try to modify its source code. </div><div><br data-mce-bogus="1"></div><div>m.</div><div><br>On Jan 25, 2017, at 11:48 AM, Benedikt Hallinger via Therion <therion@speleo.sk> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">Hello again,<br>my idea somewhat worked... see attached picture.<br><br>The ladder segments are overlapping, this is still hacky.<br>However it gives me the desired result and also works with curved lines.<br><br>An optimisation cold be to draw the outer sides just as a single line <br>following the Path slope, however<br>i have (yet) no idea how to code this in metapost.<br><br><br>What do you think of the results?<br><br>current code is as following:<br>---------------------<br>def l_fixedladder_SKBB (expr P) =<br> pair Pp;<br> pair Pd;<br> pair Pv;<br> T:=identity;<br> cas := 0;<br> dlzka := arclength P;<br> mojkrok:=adjust_step(dlzka, 0.6u);<br> pickup PenC;<br> forever:<br> t := arctime (cas + mojkrok/2) of P;<br> Pp := (point t of P);<br> Pd := unitvector(thdir(P,t));<br> Pv := Pd rotated 90;<br> thdraw (Pp + 0.5u * Pv + 0.5u * Pd) -- % left side<br> (Pp + 0.5u * Pv - 0.5u * Pd);<br> thdraw (Pp - 0.5u * Pv + 0.5u * Pd) -- % right side<br> (Pp - 0.5u * Pv - 0.5u * Pd);<br> thdraw (Pp - 0.5u * Pv) -- % rung<br> (Pp + 0.5u * Pv);<br> cas := cas + mojkrok;<br> exitif cas > dlzka - (2*mojkrok/3); % for rounding errors<br> endfor;<br> enddef;<br> let l_fixedladder_AUT = l_fixedladder_SKBB ; % code in AUT übernehmen<br> initsymbol("l_fixedladder_AUT"); % Symbol bereitstellen<br><br>---------------------<br><br><br>Am 2017-01-25 10:58, schrieb Martin Sluka via Therion:<br><blockquote type="cite" class="quoted-plain-text"><blockquote type="cite" class="quoted-plain-text">2. the width is too much for my taste and the relation to the height of</blockquote></blockquote><blockquote type="cite" class="quoted-plain-text"><blockquote type="cite" class="quoted-plain-text">the rung-spacing.</blockquote></blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">Draw more narrow rectangle. BTW it couldn’t be only rectangle. It could be</blockquote><blockquote type="cite" class="quoted-plain-text">s-shape, etc.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">m.</blockquote><blockquote type="cite" class="quoted-plain-text">_______________________________________________</blockquote><blockquote type="cite" class="quoted-plain-text">Therion mailing list</blockquote><blockquote type="cite" class="quoted-plain-text"><a href="mailto:Therion@speleo.sk" data-mce-href="mailto:Therion@speleo.sk">Therion@speleo.sk</a></blockquote><blockquote type="cite" class="quoted-plain-text"><a href="https://mailman.speleo.sk/listinfo/therion" data-mce-href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a></blockquote></span></div><div class="_stretch"><span class="body-text-content">_______________________________________________<br>Therion mailing list<br><a href="mailto:Therion@speleo.sk" data-mce-href="mailto:Therion@speleo.sk">Therion@speleo.sk</a><br><a href="https://mailman.speleo.sk/listinfo/therion" data-mce-href="https://mailman.speleo.sk/listinfo/therion">https://mailman.speleo.sk/listinfo/therion</a><br></span></div></div></blockquote></div></body></html>