Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site srs.UUCP Path: utzoo!linus!decvax!ucbvax!ucdavis!lll-crg!seismo!rochester!ur-cvsvax!srs!matt From: matt@srs.UUCP (Matt Goheen) Newsgroups: net.micro.mac Subject: Easy way to define regions (query)? Message-ID: <190@srs.UUCP> Date: Mon, 30-Dec-85 14:08:55 EST Article-I.D.: srs.190 Posted: Mon Dec 30 14:08:55 1985 Date-Received: Wed, 1-Jan-86 04:24:00 EST Distribution: net Organization: S.R. Systems, Rochester NY Lines: 34 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