From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16092 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: metafun question getting XY Date: Mon, 16 Aug 2004 15:45:26 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4120BA76.3040709@wxs.nl> References: <41133589.2070807@gmx.de> <41133396.6090009@wxs.nl> <411383D1.90501@gmx.de> <4117D780.6000901@wxs.nl> <411C7C2A.3080605@gmx.de> <116826510.20040816134131@klankschap.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092664050 11015 80.91.224.253 (16 Aug 2004 13:47:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2004 13:47:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 16 15:47:17 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BwhpV-0007hq-00 for ; Mon, 16 Aug 2004 15:47:17 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D90912783; Mon, 16 Aug 2004 15:47:17 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16981-06; Mon, 16 Aug 2004 15:47:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7DE781277F; Mon, 16 Aug 2004 15:45:36 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0AE61277F for ; Mon, 16 Aug 2004 15:45:34 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16981-05 for ; Mon, 16 Aug 2004 15:45:34 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 6707B1277E for ; Mon, 16 Aug 2004 15:45:34 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i7GDjQah000720; Mon, 16 Aug 2004 15:45:27 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 61AF52EE73; Mon, 16 Aug 2004 15:45:29 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 175E62EE82; Mon, 16 Aug 2004 13:45:27 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Floris van Manen , mailing list for ConTeXt users In-Reply-To: <116826510.20040816134131@klankschap.nl> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16092 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16092 Floris van Manen wrote: >if i define a path > >q := (w0,w0)--(w0,ww0)--(w2,ww1)--(w3,ww2)--(w3,w0)--cycle ; > >and then pass this path as a parameter to a function > >test( q ) ; > > >then within that function i can step through the 'list of points'. > >def test( expr a ) = > for i = 1 upto (length(a)-2): > dotlabel.bot ("" , (point i of a) ); > endfor ; >enddef; > > >but how could i extract from each point the X and the Y value to >construct the lines like this. > > for i = 1 upto (length(a)-2): > z1 = (point i of a) ; > draw (0,y1)--(100,y1) ; > endfor; > > > xpart point i of a ; ypart point i of a ; Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------