<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)"><style><!--
/* Font Definitions */
@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;}
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;}
--></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>Hi<o:p></o:p></p><p class=MsoNormal>I’m wondering if there is a way to scale the size of line ornamentation with the -scale option?<o:p></o:p></p><p class=MsoNormal>I am thinking about arrows (and map-connections) as in a previous post.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I notice that I can apply -scale to a line wall <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Eg <o:p></o:p></p><p class=MsoNormal>line wall -scale xs<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>subtype debris<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'><list of coordinates><o:p></o:p></p><p class=MsoNormal>endline<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>and the line will plot, but at always at normal scale. I can see why that might be, as there seems to be no way to pass the scale value into the metapost definition of the wall (or arrow) line object.<o:p></o:p></p><p class=MsoNormal>However if I put in a layout…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>min-symbol-scale m<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>then the wall (or arrow) that has a scale of s or xs will not plot (as I think is expected). So there is some crude on/off control, but I have not found where it is done.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So I am wondering, is there some way that we can have more refined control of the scale of line ornamentation (wall debris, blocks, arrow heads)? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I notice line arrow takes the special argument -head [both | none | begin]. Somewhere between the th2 file and the metapost arrow definition, the argument -head gets changed to the variable Q that is parsed to the metapost code, that controls which ends of the arrow line get arrow heads. I have copied the code below. Whereabouts is the code that tells Therion that -head is parsed to the metapost definition as Q?<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><o:p> </o:p></p><p class=MsoNormal>In th2 file…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>line arrow -head both<o:p></o:p></p><p class=MsoNormal> <coordinates><o:p></o:p></p><p class=MsoNormal>endline<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In thline.mp or in a layout file…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>code metapost<o:p></o:p></p><p class=MsoNormal>% Q = 0 -- no arrows<o:p></o:p></p><p class=MsoNormal>% 1 -- end<o:p></o:p></p><p class=MsoNormal>% 2 -- begin<o:p></o:p></p><p class=MsoNormal>% 3 -- both<o:p></o:p></p><p class=MsoNormal>def l_arrow (expr P, Q) =<o:p></o:p></p><p class=MsoNormal> T:=identity;<o:p></o:p></p><p class=MsoNormal> pickup PenB;<o:p></o:p></p><p class=MsoNormal> thdraw P;<o:p></o:p></p><p class=MsoNormal> <span lang=FR>p := (-.1u,-.5u)--(0,0)--(.1u,-.5u)--cycle; <o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span>% 0.25 changed to .5 and close end to get nicer arrowhead<o:p></o:p></p><p class=MsoNormal> if odd Q:<o:p></o:p></p><p class=MsoNormal> thfilldraw p rotated (angle(thdir(P,0))+90) <o:p></o:p></p><p class=MsoNormal> shifted (point 0 of P);<o:p></o:p></p><p class=MsoNormal> fi;<o:p></o:p></p><p class=MsoNormal> if Q>1:<o:p></o:p></p><p class=MsoNormal> thfilldraw p rotated (angle(thdir(P,length P))-90) <o:p></o:p></p><p class=MsoNormal> shifted (point infinity of P);<o:p></o:p></p><p class=MsoNormal> fi;<o:p></o:p></p><p class=MsoNormal>enddef;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>