From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9254 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MetaFun refill/do_repath bug Date: Mon, 16 Sep 2002 18:29:55 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020916181949.01fe9808@server-1> References: <20020916173130.57957f34.morawski@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399591 1762 80.91.224.250 (23 Oct 2002 18:59:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:59:51 +0000 (UTC) Cc: ConTeXt Original-To: Jens-Uwe Morawski In-Reply-To: <20020916173130.57957f34.morawski@gmx.net> Xref: main.gmane.org gmane.comp.tex.context:9254 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9254 At 05:31 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote: >Ahoi Hans, > >i wrote an article for the magazine of the german TUG that explains >some advanced features of MetaPost. Esp. it explains the >within,pathpart,penpart... stuff. In the article i give an example >that refills all filled elements of a picture with a new color. > >The article is not yet published, but one who has proof-read the >article told me that an equal macro is provided by MetaFun. A little >bit surprised, since i thought that i know most of the MetaFun did a short talk on some of those metafun thingies at the last dante meeting -) >features, i've tried the "refill" macro and was surprised again, since >it does not work correctly (IMO). The problem is that the macro >"do_repath" does not handle clipped and bounded graphic elements >correctly. > >Your macro ignores totally that clipped and bounded elements >contain again some more graphic elements, i.e. lines, filled >paths etc. Therefore the macro has to be applied recursively to >these elements too. Furthermore the pathpart of a clipped >or bounded object has to be applied only to the elements in >that object and not to the whole picture. hm, will look into it, kind of funny that "i" then is a path and picture at the same time >Please find below a MP-file that illustrates what i mean. >It compares the macro "uniformfilled" from my article with >your "refill". btw, a real robust solution also takes fonts into account so i'll have a look at that (fontpart and textpart) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------