home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!news.smith.edu!orourke
- From: orourke@sophia.smith.edu (Joseph O'Rourke)
- Subject: Re: Point inside a triangle
- Message-ID: <1992Nov17.132302.6345@sophia.smith.edu>
- Organization: Smith College, Northampton, MA, US
- References: <BxsLL1.5H5@slipknot.rain.com> <1992Nov16.115211.23169@sophia.smith.edu> <Bxtz3s.6xA@slipknot.rain.com>
- Date: Tue, 17 Nov 1992 13:23:02 GMT
- Lines: 18
-
- In article <Bxtz3s.6xA@slipknot.rain.com> robert@slipknot.rain.com.UUCP (Robert Reed) writes:
-
- >The special cases are trivial to discard, if the ray intersects a vertex, the
- >adjacent vertices must have Y values of opposite sign (assuming a horizontal
- >ray) to represent a crossing. If the point is collinear with an edge, discard
- >it [the edge, I presume].
-
- It seems from your description that points on the boundary of the triangle
- T are not handled consistently by the ray algorithm. Below, a is not in T
- but b is in T.
-
- /\
- b \
- / \
- +--a---+
-
- At least this seems to be what the code that Michael Goza posted does.
- Am I right?
-