[metapost] Re: all intersections between two paths
Hans Hagen
pragma at wxs.nl
Thu Jan 20 10:00:13 CET 2005
Larry Siebenmann wrote:
> On Sun, 16 Jan 2005 19:12:28 +0100 (CET)
> Boguslaw Jackowski wrote:
>
> > Below there is the definition of the `find_BB' procedure
> > that finds lower left and upper right coordinates (xl_crd,
> > yl_crd, xh_crd, and yh_crd, respectively) for a given set
> > of curves.
>
> Very nice indeed. The macros would make a fine addition to a MF
> tools section on CTAN.
>
> To serve the same need Laurence Finston wrote suggested
> Sun, 16 Jan 2005 17:53:50 +0100
>
> > How about (0, h) and (w, -d)
>
> Can this be made into a *useful* alternative to Jacko's
> MF marcos?
>
> When writing macros common to MF and MP, is there
> a *conventional* way for macros to decide which of MF or MP
> is running?
boolean ThisIsMp ;
ThisIsMp := known miterlimit ;
message if ThisIsMp : "METAPOST" else : "METAFONT" fi ;
end .
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the metapost
mailing list