home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!p4.cs.man.ac.uk!lomasm
- From: lomasm@p4.cs.man.ac.uk (Martin Lomas)
- Newsgroups: comp.programming
- Subject: Re: Fillet mode?
- Message-ID: <lomasm.725153824@p4.cs.man.ac.uk>
- Date: 23 Dec 92 23:37:04 GMT
- References: <BzKv0M.1I3@geovision.gvc.com>
- Sender: news@cs.man.ac.uk
- Lines: 27
-
- In <BzKv0M.1I3@geovision.gvc.com> pt@geovision.gvc.com (Paul Tomblin) writes:
-
- >I'm trying to figure out the algorithm for this, but I thought I'd ask
- >first:
-
- >Given: Corner points of a polyline, and a fillet radius
- >Generate: the parameters for the arcs at each corner point (ie. radius,
- >start point, end point, or 3 points that define the arc)
-
-
- Use PostScript! It already has such a function built in.
- I don't know what algorithm it uses.
-
- But from simple maths -- consider:
-
- Two lines A-B, B-C, with vertex B. You want to replace vertex B with
- an arc of radius r.
- Draw a circle of radius r tangental to A-B B-C, tangent points AB and
- BC respectively.
-
- You know angle ABC, length r: Hence you can calculate the points AB and
- BC and any of the other lengths/angles/points you may wish.
-
- Sorry, non-too good with diagrams on ttys!
-
- Regards,
- Martin.
-