From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106758 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: What was that 'rounding paths' metafun(?) function again? Date: Sun, 5 Apr 2020 15:52:55 +0200 Message-ID: <19A0CA4E-BC91-4F1B-B822-CCC898224832@rna.nl> References: <5805f641-3eed-a684-f7e8-20c6f3c5fef3@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============7576955138936715931==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17648"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 05 15:53:24 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 1jL5iG-0004VP-0J for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Apr 2020 15:53:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5DECA1830B3; Sun, 5 Apr 2020 15:53:02 +0200 (CEST) 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 H40JKAQLvoNo; Sun, 5 Apr 2020 15:53:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 41BBF1830B4; Sun, 5 Apr 2020 15:53:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2AAB11830AE for ; Sun, 5 Apr 2020 15:52:59 +0200 (CEST) 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 43MxGQpcoMGE for ; Sun, 5 Apr 2020 15:52:58 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 174D51830A3 for ; Sun, 5 Apr 2020 15:52:58 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 677833CDE9B8 for ; Sun, 5 Apr 2020 15:52:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1586094775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RqtocMOp5msd/KW6nAn9YRrRmIy773cO/EseaUccQeg=; b=YHMO3MEkLoB1PVepgEQLbJ++JcbKgEPPrkEcI9V0Xcr+ekLr1HTxFyhG44xnOwXNuPGfhl p8vWJmp2MyaPs23IMJpeogXtMM9as+22aG6MZnlrvbxtqrTreGxEOS7l+DffXcIi/GW0/s 4rqSz9JjH+h/cWs2bg2Kwf0muBj0ucb+otE++u5wpaypE4pkG4uCFRKi9rv9oPzSDo/y3f zFJSy2C19M/gTqRc3dnJIjVjZzxG7sdANJEqLoi67MDbNUoeV1XYjAUDd+WO+c8lbfgGGc zO0UkOrGCLeapNnRxWdfkpUgWqotgy+gn8WB11wlS36dWb17EQlSoEkcQvUI6w== In-Reply-To: <5805f641-3eed-a684-f7e8-20c6f3c5fef3@gmail.com> X-Mailer: Apple Mail (2.3445.104.14) 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:106758 Archived-At: --===============7576955138936715931== Content-Type: multipart/alternative; boundary="Apple-Mail=_F1E57362-6298-4498-9050-8CA515746626" --Apple-Mail=_F1E57362-6298-4498-9050-8CA515746626 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 5 Apr 2020, at 15:24, Keith McKay wrote: >=20 > Would sections 1.3, 1.18, 2.5 and 2.6 in the Metafun manual help? I used what is in 1.3 (though I actually used Peter Grogono=E2=80=99s = PDF MetaPost: A Reference Manual = which I = find the best educational document about plain METAPOST so far). 1.18 was what I was looking for but did not work in my situation = (don=E2=80=99t know why, but it exploded). I fixed another issue = (calling cornering on top of cornering when doing recursion) and that = made my own macro behave perfectly civilised. I had looked at 2.5 and 2.6 but this was not required (nor of any use). G >=20 > Keith >=20 > On 05/04/2020 11:31, Gerben Wierda wrote: >> I think I saw a function in MetaFun somehwre that you could give a = =E2=80=98hard=E2=80=99 path, i.e. (0,0) -- (0,1) =E2=80=94 (1,1) and it = would become a path with nicely rounded (part of a circle) corners = (still straight lines), but I can=E2=80=99t find it anymore. I wrote my = own, but it is giving me headaches so I=E2=80=99d like to find something = that is better than what I produce. >>=20 >> G >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_F1E57362-6298-4498-9050-8CA515746626 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 5 Apr 2020, at 15:24, Keith McKay <mckaymeister@gmail.com> wrote:

Would = sections 1.3, 1.18, 2.5 and 2.6 in the Metafun manual help?

I = used what is in 1.3 (though I actually used Peter Grogono=E2=80=99s <= a href=3D"https://users.encs.concordia.ca/~grogono/Writings/mpref.pdf" = class=3D"">PDF MetaPost: A Reference Manual which I find the = best educational document about plain METAPOST so far).

1.18 was what I was looking for but did not work = in my situation (don=E2=80=99t know why, but it exploded). I fixed = another issue (calling cornering on top of cornering when doing = recursion) and that made my own macro behave perfectly = civilised.

I had looked at 2.5 and = 2.6 but this was not required (nor of any use).

G


Keith

On 05/04/2020 11:31, = Gerben Wierda wrote:
I = think I saw a function in MetaFun somehwre that you could give a = =E2=80=98hard=E2=80=99 path, i.e. (0,0) -- (0,1) =E2=80=94 (1,1) and it = would become a path with nicely rounded (part of a circle) corners = (still straight lines), but I can=E2=80=99t find it anymore. I wrote my = own, but it is giving me headaches so I=E2=80=99d like to find something = that is better than what I produce.

G
_______________________________________________________________= ____________________
If your question is of interest to = others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________
__________________________________________________= _________________________________
If your question is of = interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_F1E57362-6298-4498-9050-8CA515746626-- --===============7576955138936715931== 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== --===============7576955138936715931==--