matt@srs.UUCP (Matt Goheen) (12/30/85)
Is there an easy way to find what lies inside a particular bounded
area and make that area into a region. For example, if I draw a picture
in MacPaint that contains several closed figures and incorporate that
picture in an application, how can I define a region containing one or
more of these areas? I'm looking for a "Mac" way to do this, not a
mathamatical solution. I realize I could do it bit by bit, but is there
an easier way? Since I only do this in one spot in the application I
am playing with, I don't want anything too big. I currently just look
at the picture with FatBits in MacPaint and count up the exterior outline.
Then I have to draw about 20 lines to form a polygon. After I have formed
all the polygons I use DrawPoly after opening up a region to create the
actual region. Whew! In other words, I would like to make the following
call:
myPoly = FindPoly(v, h); OR
myRgn = FindBoundRgn(v, h);
Here, v and h are the coordinates somewhere inside the polygon (or region)
and the function returns a handle to the area it found. I can't seem to
find anything in QuickDraw that does anything like this (although MacPaint
does this sort of thing all over the place). Am I missing something or
do you have to actually "WRITE YOUR OWN" (gasp!).
Also, does anyone know of anything that covers programming animation
on the Mac? I suppose a good book on computer animation would suffice,
any good titles?
Thanks for any and all advice, good or bad (not to imply anything here)...
Matt Goheen
S.R. Systems
{seismo,allegra}!rochester!srs!matt