From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54732 Path: news.gmane.org!not-for-mail From: Curiouslearn Newsgroups: gmane.comp.tex.context Subject: Metapost - Seems like weird behavior. Is it a bug? Date: Tue, 24 Nov 2009 23:45:42 -0500 Message-ID: <3b4b12310911242045l29326562t10e13387ce56b2cb@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 1259124362 9257 80.91.229.12 (25 Nov 2009 04:46:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 04:46:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 25 05:45:55 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1ND9lK-0006d6-Ao for gctc-ntg-context-518@m.gmane.org; Wed, 25 Nov 2009 05:45:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB2F3C9BC2; Wed, 25 Nov 2009 05:43:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KeSXDQyRe-1N; Wed, 25 Nov 2009 05:43:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDAD7C9BAE; Wed, 25 Nov 2009 05:43:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 161A1C9BAE for ; Wed, 25 Nov 2009 05:43:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xg33urZbrZJo for ; Wed, 25 Nov 2009 05:42:57 +0100 (CET) Original-Received: from mail-pz0-f179.google.com (mail-pz0-f179.google.com [209.85.222.179]) by balder.ntg.nl (Postfix) with ESMTP id 5503AC9B95 for ; Wed, 25 Nov 2009 05:42:57 +0100 (CET) Original-Received: by pzk9 with SMTP id 9so497852pzk.16 for ; Tue, 24 Nov 2009 20:45:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=8Wh3qO1BEZkyzFx+yakl8RN0+ZBWJUDfvliQjj84gSM=; b=knJkgLySAn5BxV82M5UY5QKhU4+yIh4p58uJerxKL+VW5VItdB8aEP6mEDx1JULX9s CYUnyjd4DLpaQTlcUkSc0drheepImF6GS54Lqcg7UoHF28DWDVz3OhOyySv16v3n5YAT NeQ/Vte9lR6Bp7ihyP5Dm3eG5bIx2v0e8Wh2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S86vOO3rY8z/iDG/NSrOboNWdu/DKSCPQNS/YL47eDYrxglRh8Wq82Ccg2nEUwdzdl DCeZBkiZAwhFAmv21kDPUghFrwrL5WHsvg57VKJzD9/vDWDWse+OHkonOdtbCeCjw50h AfJgR1A/rfGlnEo+UjGo4Vkan+flrcFtBus9k= Original-Received: by 10.142.8.3 with SMTP id 3mr776422wfh.72.1259124342380; Tue, 24 Nov 2009 20:45:42 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54732 Archived-At: The code below shows a cyclic path that I am interested in creating (it is in red if you run the code). The example works fine as long as I have, u:=1cm, as in the code below. But if I replace it by , u:=0.6cm, there is no output. There is an error saying that paths 4 and 3 do not intersect. Is this a bug? Thanks for your help. \setuppapersize[letter][letter] \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] \setupcolors[state=start] \starttext \startuseMPgraphic{buildS22} numeric u; u := 1cm; w:= 2pt; path xaxis; path yaxis; xaxis := (0,0)--(12,0) scaled u; yaxis := (0,0)--(0,12) scaled u; path stLine; path Curve; stLine := function (1,"x","10-x",0,10,1) scaled u; Curve := function(1,"x","2+8/x",1,10,0.1) scaled u; drawarrow xaxis withpen pencircle scaled w; drawarrow yaxis withpen pencircle scaled w; draw stLine withpen pencircle scaled w withcolor 0.5red; draw Curve withpen pencircle scaled w withcolor 0.5green; pair Lint[]; Lint[1]:=yaxis intersectionpoint stLine; Lint[2]:=stLine intersectionpoint Curve; Lint[3]:=reverse stLine intersectionpoint Curve; Lint[4]:=stLine intersectionpoint xaxis; path cyclicPath; cyclicPath := buildcycle(Lint[1]--Lint[2],Curve,Lint[3]--Lint[4],reverse xaxis,yaxis); draw cyclicPath withpen pencircle scaled 5pt withcolor red; \stopuseMPgraphic \useMPgraphic{buildS22} \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________