From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109190 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: About filling paths, unfill, etc. Date: Tue, 3 Nov 2020 08:09:06 -0500 Message-ID: References: <6006d2f7-7658-98b3-b50c-c10fae910920@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4713828631046192439==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29351"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 03 14:09:40 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZw4A-0007Vq-3V for gctc-ntg-context-518@m.gmane-mx.org; Tue, 03 Nov 2020 14:09:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C9ED1A9B5D; Tue, 3 Nov 2020 14:09:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eVgVsiD9otIj; Tue, 3 Nov 2020 14:09:20 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 488131A9B63; Tue, 3 Nov 2020 14:09:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6EFA31A9B5D for ; Tue, 3 Nov 2020 14:09:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ztbg7nl1vDk8 for ; Tue, 3 Nov 2020 14:09:18 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.51; helo=mail-wm1-f51.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 966DA1A9B3F for ; Tue, 3 Nov 2020 14:09:18 +0100 (CET) Original-Received: by mail-wm1-f51.google.com with SMTP id v5so12678330wmh.1 for ; Tue, 03 Nov 2020 05:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wcWiNytEAl8JEqd0+0PRM6oqGV3VT9lUieFcNBoMdtg=; b=Lz9mrwA7XvSV5iyxGCUIy/i5oUbxzKPNSJLxPc6kde3nEctzYANZgQ0iatcw15W9oP xowctJPecZJ1Ht5BWT/v3Fx/KtIhsSEwh1rzW/Sj4X9ZKNKA+ulk2ycB7DRHO8CrijXj Xr3o8umg79Ku2lAZFa+O7VhO3K+kRAVzl340s/2CN/yG7sVOIHPA7mMfem60k2hQHcnJ 3gruFDWsYjsOYXEk392zPra6NxOemq4uxRdPJuUaxYiFGwSh5ZJDi9eaRGg4ehAgIyNV NF2D7Vl9NzTck25OSCuG2eTAKGySHJ0JAvW1cgqMj/WJZTVacLEFz8YyiHBSwlIQhJnM JEuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wcWiNytEAl8JEqd0+0PRM6oqGV3VT9lUieFcNBoMdtg=; b=dmhvXolN8D4fYxsv5C5FqSxqZQeQOudOQA28ZfIZNYRTXGHh6lzK6APzClb43Hv7Vr eqAFYuTuRZaZezjVk8gY6mvZVHmDHeelLpCoMihjo/Od9Yo9AJ5gQdSky21pVJ4dLqqO /jVXpxiTuGXu/oQ5rTf1HQVGRB3+km1aRKHh/dpp+VMkVEanCaymjpta5UgVpNlhaLpk vXCK+cjalJyXsclx4tBGvzhImMkZCT8hqejvLMcWQeRkhsJg09vdoQYMJKRbEsF8xgxS 4+jSrGx0z1KeBJlByQzutXA8mPhzFKCF5dIQWK+rYMV+QmQFcYGsrCNleut0VU+/XvU/ Tw1w== X-Gm-Message-State: AOAM532nu2D3F2s78nCm9lAsTMu6ptLXBigVB1Q7PiSU6D5qHXTNrFrd 5cgyrreGYModp14y/uAktkRqneDjld2wz90+N0U= X-Google-Smtp-Source: ABdhPJyv590C5vQfQizAtuP6GF+xagZZdIUQZmfTttQgn+eknBUtipVNGDeg/xirtszqn58NRmFCs/hpkGJKFh8Il5A= X-Received: by 2002:a1c:f612:: with SMTP id w18mr3614318wmc.11.1604408958151; Tue, 03 Nov 2020 05:09:18 -0800 (PST) In-Reply-To: <6006d2f7-7658-98b3-b50c-c10fae910920@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109190 Archived-At: --===============4713828631046192439== Content-Type: multipart/alternative; boundary="000000000000066eab05b3339244" --000000000000066eab05b3339244 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh, cool. I've found some info in the Metafun manual too. I should read more carefully next time. Thank you very much! Jairo :) El mar., 3 de nov. de 2020 a la(s) 07:29, Hans Hagen (j.hagen@xs4all.nl) escribi=C3=B3: > On 11/3/2020 12:59 PM, Jairo A. del Rio wrote: > > Hi everyone. I want to know if nowadays (2020) Metafun is able to do an > > actual unfill, like above: > > > > > https://tex.stackexchange.com/questions/151068/how-can-i-fill-a-complex-p= ath-with-metapost-metafun/218718#218718 > > > > Example of what I want to do: > > > > \startMPpage > > > > path A, B, C; > > > > A :=3D unitcircle shifted (-center unitcircle); > > > > A :=3D A scaled 4cm; > > > > B :=3D unitcircle shifted (-center unitcircle); > > > > B :=3D B scaled 1cm; > > > > %C :=3D (reverse B) shifted (left*1.4cm); > > > > %It works for two paths > > > > fill (reverse B)-- A -- cycle withcolor red; > > > > %fill A -- (reverse B) -- C -- cycle withcolor red; > > > > %When I try the same with three paths, a thin, unwanted line appears > > > > \stopMPpage > > > > I'm aware of unfill and I've read somewhere else about using pens > > instead, but I want to know if a better solution is possible. Thank you > > in advance. > \startMPpage > path A; A :=3D (unitcircle shifted (-center unitcircle)) scaled = 4cm; > path B; B :=3D (unitcircle shifted (-center unitcircle)) scaled = 1cm; > path C; C :=3D B shifted (left*1.4cm); > > nofill A; nofill B; eofill C; > \stopMPpage > > to be wikified > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --000000000000066eab05b3339244 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, cool. I've found some info in the Metafu= n manual too. I should read more carefully next time.
Thank you ve= ry much!

Jairo :)

El mar., 3 de nov. de 2020 a la(s) 07:29,= Hans Hagen (j.hagen@xs4all.nl) es= cribi=C3=B3:
On = 11/3/2020 12:59 PM, Jairo A. del Rio wrote:
> Hi everyone. I want to know if nowadays (2020) Metafun is able to do a= n
> actual unfill, like above:
>
> https://tex.stackexchange.com/questions/151068/how-can-i-f= ill-a-complex-path-with-metapost-metafun/218718#218718
>
> Example of what I want to do:
>
> \startMPpage
>
> path A, B, C;
>
> A :=3D unitcircle shifted (-center unitcircle);
>
> A :=3D A scaled 4cm;
>
> B :=3D unitcircle shifted (-center unitcircle);
>
> B :=3D B scaled 1cm;
>
> %C :=3D (reverse B) shifted (left*1.4cm);
>
> %It works for two paths
>
> fill (reverse B)-- A -- cycle withcolor red;
>
> %fill A -- (reverse B) -- C -- cycle withcolor red;
>
> %When I try the same with three paths, a thin, unwanted line appears >
> \stopMPpage
>
> I'm aware of unfill and I've read somewhere else about using p= ens
> instead, but I want to know if a better solution is possible. Thank yo= u
> in advance.
=C2=A0 =C2=A0 =C2=A0\startMPpage
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path A; A :=3D (unitcircle shifted (-cent= er unitcircle)) scaled 4cm;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path B; B :=3D (unitcircle shifted (-cent= er unitcircle)) scaled 1cm;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path C; C :=3D B shifted (left*1.4cm);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nofill A; nofill B; eofill C;
=C2=A0 =C2=A0 =C2=A0\stopMPpage

to be wikified

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--000000000000066eab05b3339244-- --===============4713828631046192439== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4713828631046192439==--