realbasic-nug
[Top] [All Lists]

QuickDraw InsetRgn algorithm

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: QuickDraw InsetRgn algorithm
From: "Peter K. Stys" <pkstys at gmail dot com>
Date: Fri, 31 Aug 2007 17:17:00 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Can anyone point me to an algorithm (with source preferably, C is
fine) that "insets" a polygon (defined by a set of vertices as x,y
coordinates).  By inset I mean "shrink" towards its "center" (or
expand if the dx,dy params are negative).

Basically I'm moving away from QuickDraw as I fear one day Apple will
drop it, and need replacements for its many (and lightning fast)
functions.

Insetting a polygon appears much harder than I first anticipated.

Any ideas?

Thanks,
Peter.


-- 
---------------------------------------------
Peter K. Stys, MD
Dept. of Clinical Neurosciences
Hotchkiss Brain Institute
University of Calgary
tel (403) 210-8646
---------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>