X-Received: by 2002:a37:4b42:: with SMTP id y63mr35824918qka.450.1566456286791; Wed, 21 Aug 2019 23:44:46 -0700 (PDT) X-Received: by 2002:a05:620a:15f1:: with SMTP id p17mr19242556qkm.246.1566456286587; Wed, 21 Aug 2019 23:44:46 -0700 (PDT) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!f14no3593088qtq.0!news-out.google.com!d29ni2494qtg.1!nntp.google.com!f14no3593086qtq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.postscript Date: Wed, 21 Aug 2019 23:44:46 -0700 (PDT) In-Reply-To: <855120c4-7bbc-4fd4-97fa-816114d6f2b7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.107.176.41; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz NNTP-Posting-Host: 24.107.176.41 References: <5661daa6-058f-4f70-97e8-af7b0568cfc9@googlegroups.com> <9b8a3d34-e793-4f5c-bbb6-3509e7a20cd8@googlegroups.com> <87blxjdg7o.fsf@ixod.org> <1b955bab-1d49-4739-adf1-88c02606af56@googlegroups.com> <5d20eeef-c249-4765-b5b4-b3dcdceee704@googlegroups.com> <45fef125-5d35-4535-8380-8eab9294e449@googlegroups.com> <098c541d-5c74-40c5-9865-0bd028aee3aa@googlegroups.com> <395bcb26-aab8-46e4-9173-e28c8fc1af98@googlegroups.com> <855120c4-7bbc-4fd4-97fa-816114d6f2b7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0482e7b0-8d79-41c1-9289-e2f92eef98d4@googlegroups.com> Subject: Re: Snipping the ears From: luser droog Injection-Date: Thu, 22 Aug 2019 06:44:46 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 25 Xref: csiph.com comp.lang.postscript:3437 On Tuesday, August 20, 2019 at 12:46:24 AM UTC-5, luser droog wrote: > On Tuesday, August 13, 2019 at 6:03:58 PM UTC-5, luser droog wrote: > > So, now for the chore of actually snipping the ears. I think the same > > PostScript trick of using a dict as an associative array will help. > > I can associate each string of the ear report with the subpath array > > it belongs to. Then I can use a plain 'forall' loop instead of a weird > > 'for' loop to access parallel arrays. > > > > I expect to have some pretty output soon. Wish me luck! > > > > Sigh. Same story again. It all works, but it doesn't "work". I tried > snipping the ears by replacing the subsequence of curves with a single > curve. And I tried grabbing earlier and/or later curves as well. > > I think it might work if I use 2 curves. I have a sketch of how to > do it, but nothing typed in yet. With two curves, the output still isn't right. But it is interesting. The whole thing sorta halfway works. I can snip the ears, but I still need to devise a suitable replacement fragment. On the other hand, checking for self-intersection seems like a more correct method. Then I'd have a point of intersection and I could just chop it at that point.