From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66247 Path: news.gmane.org!not-for-mail From: "Reviczky, Adam" Newsgroups: gmane.comp.tex.context Subject: Re: metapost fill between outlines Date: Mon, 21 Feb 2011 09:09:50 +0000 Message-ID: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB526@KCL-MAIL05.kclad.ds.kcl.ac.uk> 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: dough.gmane.org 1298279450 18915 80.91.229.12 (21 Feb 2011 09:10:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2011 09:10:50 +0000 (UTC) To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 21 10:10:44 2011 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.69) (envelope-from ) id 1PrRn0-0003tZ-KL for gctc-ntg-context-518@m.gmane.org; Mon, 21 Feb 2011 10:10:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A104ACAA39; Mon, 21 Feb 2011 10:10:41 +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 vPETwn0lJRQj; Mon, 21 Feb 2011 10:10:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 532AECAA12; Mon, 21 Feb 2011 10:10:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47F28CAA12 for ; Mon, 21 Feb 2011 10:10:27 +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 z3RhS6QyAnTt for ; Mon, 21 Feb 2011 10:10:16 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 207CDCAA0C for ; Mon, 21 Feb 2011 10:10:16 +0100 (CET) Original-Received: from mail78.messagelabs.com (mail78.messagelabs.com [195.245.230.131]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1L9AFFG014023 for ; Mon, 21 Feb 2011 10:10:15 +0100 X-VirusChecked: Checked X-Env-Sender: adam.reviczky@kcl.ac.uk X-Msg-Ref: server-4.tower-78.messagelabs.com!1298279414!39161492!1 X-StarScan-Version: 6.2.9; banners=-,-,- X-Originating-IP: [137.73.2.214] Original-Received: (qmail 21236 invoked from network); 21 Feb 2011 09:10:14 -0000 Original-Received: from outbound.kcl.ac.uk (HELO outbound.kcl.ac.uk) (137.73.2.214) by server-4.tower-78.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 21 Feb 2011 09:10:14 -0000 Original-Received: from ml-relay1.kcl.ac.uk ([137.73.2.230] helo=elder) by outbound.kcl.ac.uk outbound with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) id 1PrRmB-0006bW-JS for ntg-context@ntg.nl; Mon, 21 Feb 2011 09:09:51 +0000 Original-Received: from [194.83.7.227] (helo=KCL-ETS02.ds.kcl.ac.uk) by elder mlmx with esmtp id 1PrRmB-0006bQ-CK for ntg-context@ntg.nl; Mon, 21 Feb 2011 09:09:51 +0000 Original-Received: from KCL-HTS03.kclad.ds.kcl.ac.uk (10.12.7.210) by KCL-ETS02.ds.kcl.ac.uk (10.12.4.21) with Microsoft SMTP Server (TLS) id 8.1.375.2; Mon, 21 Feb 2011 09:09:51 +0000 Original-Received: from KCL-MAIL05.kclad.ds.kcl.ac.uk ([193.63.72.94]) by KCL-HTS03.kclad.ds.kcl.ac.uk ([10.12.7.210]) with mapi; Mon, 21 Feb 2011 09:09:50 +0000 Thread-Topic: metapost fill between outlines Thread-Index: AQHL0acY3R7jcxxZXEGQ6LoQMkDnnw== Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Bayes-Prob: 0.9411 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=195.245.230.131; country=DE; region=05; city=Frankfurt Am Main; latitude=50.1167; longitude=8.6833; http://maps.google.com/maps?q=50.1167,8.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEaxafUB - e6be3d79dbe4 - 20110221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:66247 Archived-At: The only letter ("g") I have left in the logo has two spaces that I want to cut out. I can't make a single path out of it so that it doesn't go through the entire letter, so what to do in this case? Here's the example: %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path gb[],gf[],gc[]; gb1 := (100.023003,46.691399)..controls (100.023003,47.015598) and (100.348000,47.203098)..(100.969002,47.203098) ..controls (101.859001,47.203098) and (101.859001,46.855499)..(102.371002,46.855499) ..controls (102.695000,46.855499) and (102.991997,47.015598)..(102.991997,47.582001) ..controls (102.991997,48.066399) and (102.530998,48.230499)..(102.101997,48.230499) ..controls (101.616997,48.230499) and (100.996002,48.093800)..(100.348000,47.664101) ..controls (100.188004,47.527302) and (99.781197,47.339802)..(99.539101,47.500000) ..controls (99.027298,47.851601) and (98.570297,48.093800)..(97.355499,48.093800) ..controls (96.144501,48.093800) and (94.363297,47.367199)..(93.230499,45.828098) ..controls (92.421898,44.695301) and (92.261703,43.886700)..(92.261703,43.078098) ..controls (92.261703,42.269501) and (92.585899,41.675800)..(92.828102,41.355499) ..controls (92.878899,41.273399) and (92.906197,41.218800)..(92.906197,41.136700) ..controls (92.906197,40.949200) and (92.664101,40.812500)..(92.261703,40.707001) ..controls (91.531197,40.464802) and (90.320297,39.761700)..(90.320297,38.523399) ..controls (90.320297,37.714802) and (90.964798,36.933601)..(91.695297,36.445301) ..controls (91.695297,36.445301) and (90.210899,36.042999)..(89.023399,35.394501) ..controls (88.109398,34.882801) and (87.082001,34.101601)..(87.082001,32.968800) ..controls (87.082001,31.675800) and (88.191399,29.570299)..(92.746101,29.570299) ..controls (95.414101,29.570299) and (97.085899,30.539101)..(97.734398,31.269501) ..controls (98.218803,31.835899) and (98.296898,32.484402)..(98.296898,32.886700) ..controls (98.296898,34.343800) and (96.683601,35.718800)..(94.902298,36.687500) ..controls (93.769501,37.335899) and (92.097702,38.117199)..(92.097702,39.277302) ..controls (92.097702,39.574200) and (92.179703,39.898399)..(92.503899,40.085899) ..controls (92.718803,40.250000) and (93.070297,40.328098)..(93.445297,40.328098) ..controls (93.957001,40.328098) and (94.605499,40.167999)..(95.066399,40.167999) ..controls (96.519501,40.167999) and (98.488297,40.652302)..(99.703102,43.242199) ..controls (100.023003,43.968800) and (100.160004,44.695301)..(100.160004,45.316399) ..controls (100.160004,46.125000) and (100.023003,46.316399)..(100.023003,46.691399) --cycle; drawdot (100.023003,46.691399) withcolor blue withpen pencircle scaled 2pt; gf2 := (92.960899,30.351601)..controls (89.968803,30.351601) and (89.078102,32.078098)..(89.078102,32.941399) ..controls (89.078102,33.750000) and (89.402298,34.261700)..(90.210899,34.828098) ..controls (90.777298,35.234402) and (91.613297,35.636700)..(92.261703,35.878899) ..controls (92.988297,35.558601) and (94.093803,34.910198)..(94.445297,34.585899) ..controls (96.062500,33.453098) and (96.386703,32.808601)..(96.386703,32.242199) ..controls (96.386703,30.703100) and (94.093803,30.351601)..(92.960899,30.351601) --cycle; drawdot (92.960899,30.351601) withcolor green withpen pencircle scaled 2pt; gf1 := (98.867203,46.367199)..controls (98.867203,45.585899) and (98.570297,44.535198)..(97.894501,43.402302) ..controls (96.628899,41.355499) and (95.628899,40.949200)..(94.769501,40.949200) ..controls (94.039101,40.949200) and (93.714798,41.542999)..(93.714798,42.406200) ..controls (93.714798,43.160198) and (94.039101,44.132801)..(94.605499,45.019501) ..controls (95.468803,46.394501) and (96.683601,47.527302)..(97.761703,47.527302) ..controls (98.488297,47.527302) and (98.867203,47.175800)..(98.867203,46.367199) --cycle; drawdot (98.867203,46.367199) withcolor yellow withpen pencircle scaled 2pt; gc1 := gb1 -- gf1 -- cycle; gc2 := gc1 -- gf2 -- cycle; fill gc2; \stopMPcode } \stoptext %%% How do I get rid of the crossing line? Adam ___________________________________________________________________________________ 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 ___________________________________________________________________________________