From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111843 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: simplifying repeated macro calls in metafun Date: Tue, 22 Jun 2021 06:50:58 +0900 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/mixed; boundary="===============0317463213570583777==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24900"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 21 23:51:43 2021 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 1lvRpX-0006D7-9q for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Jun 2021 23:51:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 454322849D4; Mon, 21 Jun 2021 23:51:11 +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 TECOQKyw_6nJ; Mon, 21 Jun 2021 23:51:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 079292849F2; Mon, 21 Jun 2021 23:51:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 521C02849F0 for ; Mon, 21 Jun 2021 23:51:06 +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 VRbWo8FZeDel for ; Mon, 21 Jun 2021 23:51:04 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.57; helo=pv50p00im-ztbu10021601.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-ztbu10021601.me.com (pv50p00im-ztbu10021601.me.com [17.58.6.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8C50A2849D4 for ; Mon, 21 Jun 2021 23:51:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1624312262; bh=K+4L0VhMuaGQvV3tcU+88PLCYpCuuD/TkiRTlem53Cc=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=LDbwtKpskAUq1NfZykUFurqcrO4C7kScfVl+O7VzYexaHkrwkp91dPdRgbLzRLexI ooQzhPN2xcpg1QfheKdhBavt9tBz5HnpSSxQ23KVorc87y2fjZt7jiy156RHmCGnyd Z1IQ9H2pZitdAfDhfuEm5T3vleNHnLySDWnk3GyfBDa+G3GfaidVUVTJnbOr6puN1z yOB2t+ECtNEEeOWGQBF6FqHZ0qNXadXMx9U7Vpj+VMTYhSe4b/sm4yIhX6pgOY+2Vu i1RdvjUlOQFojrCFIOIeb2aWnE3YR0ceXjGa7BRz53hVTX2HhWbqvWuidRmp8nPZ8w +vO4kwnelU+vw== Original-Received: from smtpclient.apple (unknown [222.232.154.22]) by pv50p00im-ztbu10021601.me.com (Postfix) with ESMTPSA id F17996E0597 for ; Mon, 21 Jun 2021 21:51:01 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-21_13:2021-06-21, 2021-06-21 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=683 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106210128 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:111843 Archived-At: --===============0317463213570583777== Content-Type: multipart/alternative; boundary="Apple-Mail=_7E37F9CE-7BDD-45AA-B89C-E9C4FEF2A5C5" --Apple-Mail=_7E37F9CE-7BDD-45AA-B89C-E9C4FEF2A5C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Otared, I received list mail in condensed form, I didn=E2=80=99t see your mail = before I sent one. As Mikael explained, =E2=80=9Cwhatever=E2=80=9D is very nice to find the = intersection point of two lines. You can see nice examples which use =E2=80=9Cwhatever=E2=80=9D in = MetaFun manual. In my code, the next point is the intersection point of the edge and the = folding line which bisect the angle of the former folding line [M,N]. H :=3D whatever[N, N + dir(.5*angle(M-N))*u] =3D whatever[A,B]; Enjoy the use of =E2=80=9Cwhatever=E2=80=9D! I made an animation of the folding process using animation module and = \processMPbuffer. But Woldgang=E2=80=99s code showed a way to make it using = \startuseMPgraphic. Best regards, Dalyoung= --Apple-Mail=_7E37F9CE-7BDD-45AA-B89C-E9C4FEF2A5C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Dear Otared,

I = received list mail in condensed form, I didn=E2=80=99t see your mail = before I sent one.

As Mikael = explained, =E2=80=9Cwhatever=E2=80=9D is very nice to find the = intersection point of two lines.
You can see nice examples = which use =E2=80=9Cwhatever=E2=80=9D in MetaFun manual.

In my code, the next point is the intersection = point of the edge and the folding line which bisect the angle of the = former folding line [M,N].

H :=3D whatever[N, N + = dir(.5*angle(M-N))*u] =3D whatever[A,B];

Enjoy the = use of =E2=80=9Cwhatever=E2=80=9D!

I made an animation of the = folding process using animation module and = \processMPbuffer.
But Woldgang=E2=80=99s code = showed a way to make it using \startuseMPgraphic.


Best = regards,

Dalyoung
= --Apple-Mail=_7E37F9CE-7BDD-45AA-B89C-E9C4FEF2A5C5-- --===============0317463213570583777== 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== --===============0317463213570583777==--