[Therion] How do I change the water symbol

2006-12-21 Thread Stacho Mudrak
Quoting Olly Betts :
> I'm guessing the problem is that the distance between the diagonal lines
> scales with everything else so they're just too close together at a
> scale which is significantly smaller than those the therion developers
> tend to use themselves.

Exactly. We have already in TODO list to extract some generic  
variables for fill densities. Currently, you can do it by redefinition  
of symbols in layout. Just add to your layout:

code metapost

% pattern for water, .18u is density of lines.
beginpattern(pattern_water_MY);
 draw origin--10up withpen pensquare scaled (0.02u);
 patternxstep(.18u);
 patterntransform(identity rotated 45);
endpattern;

% pattern for sump, 0.25u is density in this case.
beginpattern(pattern_sump_MY);
 draw origin--(0,.25u) withpen pensquare scaled (0.02u);
 draw origin--(.25u,0) withpen pensquare scaled (0.02u);
 patterntransform(identity rotated 45);
endpattern;

def a_water (expr Path) =
   T:=identity;
   thclean Path;
   thfill Path withpattern pattern_water_MY;
enddef;

def a_sump (expr Path) =
   T:=identity;
   thclean Path;
   thfill Path withpattern pattern_sump_MY;
enddef;

endcode

... and modify 0.18u in water pattern (and/or 0.25u in sump pattern)  
to number you need.

In therion, area symbols are defined two ways:
1. Using patterns - no randomness, very small PDF file size. You need  
to redefine pattern (begin|endpattern) and symbol macro (a_water).
2. Using drawing/clipping into Path - random look, large PDF size.  
Here you need to redefine only symbol (a_water) macro.
Water is the case of pattern fills. Blocks and other are random.

For other area symbols, see mpost/thArea.mp file for metapost source codes.

HTH, S.





[Therion] How do I change the water symbol

2006-12-21 Thread Martin Sluka

On 21.12.2006, at 1:03, Olly Betts wrote:

> the therion developers
> tend to use themselves.

There is a section in wiki about modification of metapost macros for  
symbols. Not exactly for water, but for several other areas. It  
should be similar.

http://therion.speleo.sk/wiki/doku.php?id=mmj

Please, after you find your solution, place it on wiki too.

m.s.



[Therion] How do I change the water symbol

2006-12-21 Thread Olly Betts
On Wed, Dec 20, 2006 at 11:36:32PM +, Wookey wrote:
> On 2006-12-20 18:46 +, Olly Betts wrote:
> > On Tue, Dec 19, 2006 at 03:21:01AM +, Wookey wrote:
> > > The xisting water shading sysmbol doesn't work at all well at small
> > > scales. The lines merge and I just get a black area for both open
> > > water and sumps.
> > 
> > We'd definitely like this too.  The drawn up survey has one small sump
> > pool and one static puddle, so we've just ignored that both look the
> > same, and black rather than patterned.
> 
> As MartinS and PhilipS pointed out this info is in the wiki here:
> http://therion.speleo.sk/wiki/doku.php?id=metapost

That seems to tell me how to make water blue, which isn't what I want.

What I'd like is for the diagonal stripes (on pools) and cross-hatching
(on sumps) to be visible at scales like 1:500 rather than just appearing
as solid black.

I'm guessing the problem is that the distance between the diagonal lines
scales with everything else so they're just too close together at a
scale which is significantly smaller than those the therion developers
tend to use themselves.

Cheers,
Olly



[Therion] How do I change the water symbol

2006-12-20 Thread Wookey
On 2006-12-20 18:46 +, Olly Betts wrote:
> On Tue, Dec 19, 2006 at 03:21:01AM +, Wookey wrote:
> > The xisting water shading sysmbol doesn't work at all well at small
> > scales. The lines merge and I just get a black area for both open
> > water and sumps.
> 
> We'd definitely like this too.  The drawn up survey has one small sump
> pool and one static puddle, so we've just ignored that both look the
> same, and black rather than patterned.

As MartinS and PhilipS pointed out this info is in the wiki here:
http://therion.speleo.sk/wiki/doku.php?id=metapost

Gives a nice blue. Not sure what the correct sump symbol is now. A
darker blue, perhaps.

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://wookware.org/



[Therion] How do I change the water symbol

2006-12-20 Thread Olly Betts
On Tue, Dec 19, 2006 at 03:21:01AM +, Wookey wrote:
> The xisting water shading sysmbol doesn't work at all well at small
> scales. The lines merge and I just get a black area for both open
> water and sumps.

We'd definitely like this too.  The drawn up survey has one small sump
pool and one static puddle, so we've just ignored that both look the
same, and black rather than patterned.

Cheers,
Olly