home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!csus.edu!netcom.com!whedon
- From: whedon@netcom.com (Bill Whedon)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: PtInRegion
- Keywords: PtInRegion
- Message-ID: <r74m3xl.whedon@netcom.com>
- Date: 12 Aug 92 22:28:15 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 20
-
- This is in response to infra@heart.ubc.ca or something like that. My note
- came back garbled:
-
- Re: How do regions work?
-
- Based on the fact that PtInRegion works only in device coordinate world,
- I would surmise that your second guess (floodfill) is close to the mark.
- You should probably implement it in assembler for speed, unless your
- software (a) checks few points, or (b) runs on 80486+ only. :-)
-
- There are mathematical methods for determining whether a point lies
- within a convex polygon, but those involving concave or complex polys
- are quite a lot more difficult. See "Algorithms in C" for some
- discussion of this.
-
- Cheers,
- Bill Whedon
-
-
-
-