It would be better, I think, to have an attribute for the scale
(Factor) with values of say 1-10 which could be passed to and
evaluated by the definition.
But first, I was checking to see if I was missing something in the way
Stefan's def works.
On 2 Jan 2009, at 19:00, therion-request(a)speleo.sk wrote:
> Send Therion mailing list submissions to
> therion(a)speleo.sk
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.speleo.sk/mailman/listinfo/therion
> or, via email, send a message with subject or body 'help' to
> therion-request(a)speleo.sk
>
> You can reach the person managing the list at
> therion-owner(a)speleo.sk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Therion digest..."
>
>
> Today's Topics:
>
> 1. Re: Using metapost code examples (Bruce Mutton)
> 2. improved script for converting SVG to th2 (Thomas Holder)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 02 Jan 2009 11:58:05 +1300
> From: Bruce Mutton <bruce.mutton(a)paradise.net.nz>
> Subject: Re: [Therion] Using metapost code examples
> To: 'List for Therion users' <therion(a)speleo.sk>
> Message-ID: <2A837C7D04834F3FA9928B5D91A18CF0@JUICEBRAIN>
> Content-Type: text/plain; charset="us-ascii"
>
> "I'm afraid that's what I thought. We have the situation here in
> Mulu where
> the main passages are 50m wide with house sized boulders with side
> passages
> a mere 5m wide and small car size boulders so ideally we need a
> mixture of
> block sizes to play with. And of course chambers the size of football
> fields."
>
>
>
> I have not tried this but surely the solution is just a matter of
> creating a
> number of similar metapost code definitions, that differ only by the
> scale
> factor as mentioned by Stefan, and named say blocks_xl, blocks_l,
> blocks_s,
> blocks_xs. Then add these additional definitions to the legend and
> configuration file as in the bats example in the last few pages of the
> Therion book. We would then have 5 different block scales that
> could be
> used at will in any drawing.
>
>
>
> I'm probably being naive again, but it looks in concept very simple,
> as we
> have a code example as a template. Any reason why not?
>
>
>
> Regards
>
> Bruce
>
>
>
>
>
>
>
>
>
>
>
>
I'm afraid that's what I thought. We have the situation here in Mulu
where the main passages are 50m wide with house sized boulders with
side passages a mere 5m wide and small car size boulders so ideally we
need a mixture of block sizes to play with. And of course chambers the
size of football fields.
On 31 Dec 2008, at 19:00, therion-request(a)speleo.sk wrote:
> Send Therion mailing list submissions to
> therion(a)speleo.sk
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.speleo.sk/mailman/listinfo/therion
> or, via email, send a message with subject or body 'help' to
> therion-request(a)speleo.sk
>
> You can reach the person managing the list at
> therion-owner(a)speleo.sk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Therion digest..."
>
>
> Today's Topics:
>
> 1. Re: Using metapost code examples (Stefan Oswald)
> 2. Re: Using metapost code examples (Martin Budaj)
> 3. Re: Using metapost code examples (Wookey)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 30 Dec 2008 13:01:17 +0100
> From: "Stefan Oswald" <stefan_oswald(a)gmx.at>
> Subject: Re: [Therion] Using metapost code examples
> To: therion(a)speleo.sk
> Message-ID: <20081230120117.233970(a)gmx.net>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> The size is controlled by the factor before the u.
> (symbolsize:=1.0u; %Factor*u; Factor=size of the blocks change 1.0
> as you want)
>> Does this apply to each instance of a block or is it a
>> global definition.
> This overrules the point_block sizes in the whole plan compiled.
> Size canging/definition of a single block is, as far as i know, not
> possible and not projected?
>
> The problem was (with other symbols it is still the case, a solution
> could be, for example an layout command for small symbols) that with
> small caves in small scales the normative symbol size is too large,
> so it might happen that you only see a small part of the symbol in a
> narrow passage on small scale.
> You can handle this problem with block_points and block_area in UIS
> as in described in wiki by changing the factor before the "u".
>
> Gl?ck Tief, Stefan
>
> -------- Original-Nachricht --------
>> Datum: Tue, 30 Dec 2008 12:00:01 +0100
>> Von: therion-request(a)speleo.sk
>> An: therion(a)speleo.sk
>> Betreff: Therion Digest, Vol 37, Issue 14
>
>> Send Therion mailing list submissions to
>> therion(a)speleo.sk
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://mailman.speleo.sk/mailman/listinfo/therion
>> or, via email, send a message with subject or body 'help' to
>> therion-request(a)speleo.sk
>>
>> You can reach the person managing the list at
>> therion-owner(a)speleo.sk
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Therion digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Using metapost code examples (Dave Clucas)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 30 Dec 2008 19:00:56 +0800
>> From: Dave Clucas <dave(a)daveclucas.com>
>> Subject: [Therion] Using metapost code examples
>> To: therion(a)speleo.sk
>> Message-ID: <2CDC217E-E91E-4780-A35C-F6B719CC9D32(a)daveclucas.com>
>> Content-Type: text/plain; charset="us-ascii"; Format="flowed";
>> DelSp="yes"
>>
>> Looking at the metapost examples in the Wiki it appears that a block
>> symbol can be defined or redefined which allows the size of the block
>> to be changed. Does this apply to each instance of a block or is it a
>> global definition. How do you specify the size of the block when you
>> place it in the drawing?
>>
>> code metapost
>> def p_blocks_UIS (expr pos,theta,sc,al)=
>> symbolsize:=1.0u; %Factor*u; Factor=size of the blocks
>> U:=(.5u,.5u);
>> T:=identity aligned al rotated theta scaled sc shifted pos;
>> pickup PenC;
>> thdraw (.0symbolsize,.0symbolsize)--(1.0symbolsize,-.
>> 5symbolsize)--(0.0symbolsize,-1.5symbolsize)--
>> (-1.0symbolsize,-1.0symbolsize)--cycle;
>> thdraw (.5symbolsize,-.25symbolsize)--(1.0symbolsize,.
>> 5symbolsize)--(0.0symbolsize,1.5symbolsize)--(-0.5symbolsize,.
>> 5symbolsize);
>> thdraw (.0symbolsize,.0symbolsize)--(.0symbolsize,.5symbolsize)--
>> (-1.5symbolsize,.5symbolsize)--(-1.5symbolsize,-0.5symbolsize)--
>> (-0.5symbolsize,-0.5symbolsize);
>> enddef;
>> endcode
>>
>>
>>
>> Dave Clucas
>> email:dave@daveclucas.com
>> Website: http://daveclucas.com
>> http://mycaves.org
>> Skype: daveclucas
>>
>>
>>
>>
>>