Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2004
| X-Received | by 10.50.73.162 with SMTP id m2mr18714365igv.1.1409648782544; Tue, 02 Sep 2014 02:06:22 -0700 (PDT) |
|---|---|
| X-Received | by 10.140.83.180 with SMTP id j49mr773861qgd.1.1409648782364; Tue, 02 Sep 2014 02:06:22 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no8338483igb.0!news-out.google.com!q8ni9qal.1!nntp.google.com!m5no5123231qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.postscript |
| Date | Tue, 2 Sep 2014 02:06:22 -0700 (PDT) |
| In-Reply-To | <6d617280-6964-4601-91c9-8600fa370bbe@googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=86.174.245.138; posting-account=Cp97SgoAAAC0t1Gya5PaPqyoafMoOtAn |
| NNTP-Posting-Host | 86.174.245.138 |
| References | <0410d6f7-a91f-4b56-a0f6-fd7f558676cd@googlegroups.com> <f791cdde-84ed-484d-9f52-a242a52dca97@googlegroups.com> <6d617280-6964-4601-91c9-8600fa370bbe@googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <608ec2aa-687e-4fc2-b96c-030d9399bc12@googlegroups.com> (permalink) |
| Subject | Re: setdash |
| From | jdaw1 <jdawiseman@gmail.com> |
| Injection-Date | Tue, 02 Sep 2014 09:06:22 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.postscript:2004 |
Show key headers only | View raw
I think you might need something like this.
% x0 y0 x1 y1 x2 y2 x3 y3 WantedDistance Tolerance FindDistanceInCurve real bool
% If the bool is true, the real is the t value within cure
% if the bool is false, the real is the length of the whole curve
/FindDistanceInCurve
{
...
} bind def % /FindDistanceInCurve
Obviously lots missing. It will use a variation of the splitting algorithm in http://steve.hollasch.net/cgindex/curves/cbezarclen.html
If within Tolerance of a straight line, then use the approximation in the linked article to compute estimated length. If length <= WantedDistance, return false and that length. Otherwise split curve. Repeat on first segment with Tolerance halved: if t found, then good. Obviously t's will need to be mapped from the sub-range into the whole. If t not found, subtract new-found length from target and repeat on second curve.
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
setdash luser- -droog <mijoryx@yahoo.com> - 2014-08-30 01:43 -0700
Re: setdash jdaw1 <jdawiseman@gmail.com> - 2014-08-30 02:51 -0700
Re: setdash luser- -droog <mijoryx@yahoo.com> - 2014-08-30 20:40 -0700
Re: setdash jdaw1 <jdawiseman@gmail.com> - 2014-09-01 02:39 -0700
Re: setdash jdaw1 <jdawiseman@gmail.com> - 2014-09-02 02:06 -0700
Re: setdash luser- -droog <mijoryx@yahoo.com> - 2014-09-04 16:51 -0700
Re: setdash luser- -droog <mijoryx@yahoo.com> - 2014-09-16 03:37 -0700
Re: setdash luser- -droog <mijoryx@yahoo.com> - 2014-11-16 23:40 -0800
csiph-web