Re: [MetaPost] How to fill a closed path with a hatching -- Solved!

Larry Siebenmann <[email protected]> Fri, 17 Jan 2003 22:11:43 -0500
Newsgroups gmane.comp.tex.metafont
Message-ID <[email protected]>

I have just spotted Boguslaw Jackowski solution to
Martin Buchmann's hatching problem:

 > Reception: [email protected] Fri Jan 17 13:04:42 2003  
 > To: [email protected]
 > Subject: Re: hatching.zip on DANTE:/incoming 
 > Date: Fri, 17 Jan 2003 11:45:56 +0000
 > From: Robin Fairbairns <[email protected]>
 > 
 > Staszek Wawrykiewicz writes:
 > 
 > >  > I've just uploaded to DANTE:/incoming/hatching.zip
 > >  > Please unpack it in graphics/metapost/macros/
 > >  > 
 > >  > The file HATCHING.MP contains a set of METAPOST macros for hatching
 > >  > interior of closed paths. The examples of usage included.
 > >  > Licence: PD
 > 
 > i have installed the files as requested (at the cambridge ctan, for
 > ctan internal reasons...).  thanks for the upload.
 > 
 > Robin Fairbairns
 > 
 > For the CTAN team

On the other hand, although Hartmut Henkel's solution reached 
the list, I fear those of Hans and  Martti did not (? yet). 

Cheers

Laurent S.

The readme file: (English!)

 | The file HATCHING.MP contains a set of METAPOST macros for
 | hatching interior of closed paths.
 | 
 |  made in BOP s.c.
 |  e-mail: [email protected]
 |  public domain software
 |  (no copyrights, copylefts, copyups, copydowns, or whatsoever)
 | 
 |  21.09.2000 -- ver 0.11 (pre-release)
 | 
 | The basic macro, hatchfill, works very much like the standard
 | fill command. The general form of the hatchfill command call is
 | as follows:
 |  
 |   hatchfill path_expression withcolor c1 withcolor c2 ...
 | 
 | The trick is that for hatching special ``colors'' are used,
 | namely, if bluepart(c)<0, the colour c is interpreted as hatching
 | data:
 |  
 | 
 |  hatching angle redpart(c)
 |  distance between lines greenpart(c)
 |  thickness of lines -bluepart(c)
 | 
 | Dashing and colouring of the hatch pattern can be accomplished by
 | using hatchoptions command (cf. drawoptions in plain.mp).
 | Actually, an arbitrary pattern can be used instead of straight
 | lines: it suffices to redefine the macro draw_hatched_band (cf.
 | htchuse.mp, figure 103), although one should be aware that
 | METAPOST memory can be easily overloaded and that the resulting
 | EPS files are usually annoyingly large.
 | 
 | The examples of usage can be found in htchuse.mp; for
 | convenience, a trivial TeX file for typesetting the figures,
 | htchuse_.tex, is included.