[metapost] Pen stroking and tight curves

Shriramana Sharma samjnaa at gmail.com
Mon Oct 22 06:49:07 CEST 2012

On Mon, Oct 22, 2012 at 7:01 AM, xiolyxioly <xiolyxioly at yahoo.com> wrote:

>  People in CAD/CAM do this sort of computation all the time. It's called
> "removing loops from offset curves" or something like that. The problem of
> moving an NC milling cutter around a tight corner is exactly the same as
> moving a pen. I'll find some references, if anyone is interested.

CiteSeerX — Hermite Approximation for Offset Curve
one ref which actually discusses this problem (though not w.r.t. fonts
specifically). However the author writes here that the curvature is the
inverse of the diameter. I however think that it should be the inverse of
the radius, going by http://en.wikipedia.org/wiki/Curvature (and other refs
I've seen so far).

BTW I downloaded the other two links you sent and will read them in due
course. I'd also appreciate any other docs you can provide.

Another thing: I'm not sure that it is a straightforward thing to compute
the points of reverse loops if your pen is anything other than circular.

Shriramana Sharma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20121022/e8b75f9e/attachment.html>

More information about the metapost mailing list