From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37549 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: metafun's "smoothed" Date: Sun, 25 Nov 2007 11:00:24 -0500 (EST) Message-ID: References: <6faad9f00711250641r47622566n65bc081f709e14a9@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196006502 10280 80.91.229.12 (25 Nov 2007 16:01:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 16:01:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 25 17:01:48 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IwJvW-0008I4-GP for gctc-ntg-context-518@m.gmane.org; Sun, 25 Nov 2007 17:01:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 029091FDE0; Sun, 25 Nov 2007 17:01:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08577-01-5; Sun, 25 Nov 2007 17:00:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC6BB1FD91; Sun, 25 Nov 2007 17:00:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D4481FD91 for ; Sun, 25 Nov 2007 17:00:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08577-01-4 for ; Sun, 25 Nov 2007 17:00:28 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id 4F3B21FD8C for ; Sun, 25 Nov 2007 17:00:27 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY skycaptain.mr.itd.umich.edu ID 47499C19.58E3F.18540 ; 25 Nov 2007 11:00:25 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: <6faad9f00711250641r47622566n65bc081f709e14a9@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37549 Archived-At: On Sun, 25 Nov 2007, Mojca Miklavec wrote: > Hello Hans, > > What exactly is the intended function of "smooothed"? I thought that > the following should work and make round corners, but it only takes > the bounding box. (I didn't play with it yet, but I assume that > "punked" behaves in a similar way to what I would expect - it modifies > the whole curve.) > > \starttext > \startMPcode > path p; > % return > p := ((0,0)--(1,0)--(1,2)--(-0.5,2)--(-0.5,1)--(0,1)--cycle) scaled 1cm; > draw p; > draw p smoothed 1mm shifted (3cm,0); > \stopMPcode > \stoptext Replying from memory here so I may be wrong. From what I remember, smoothed has a ..cycle in its definition. Compare the definition of punked and smoothed and modify smoothed accordingly. I remember doing this once to get a smoothed curve. Aditya ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________