home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!chrisg
- From: chrisg@cbmvax.commodore.com (Chris Green)
- Newsgroups: comp.graphics
- Subject: Re: Clipping polygon to rectangle
- Message-ID: <37984@cbmvax.commodore.com>
- Date: 17 Dec 92 14:06:51 GMT
- References: <724442088.9285@minster.york.ac.uk> <19921215.155422.690@almaden.ibm.com>
- Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
- Organization: Commodore, West Chester, PA
- Lines: 24
-
- In article <19921215.155422.690@almaden.ibm.com> capelli@vnet.ibm.com (Ron Capelli) writes:
- >No intermediate polygons need be saved between stages of a
- >Sutherland-Hodgman polygon clipper.
- >
- >The clipped edges output for each side of the clipping region
- >(eg., rectangle) are in the order they need to be considered
- >for the next side. Therefore, the stages can be cascaded in a
- >recursive-like way. The output of each stage except the last
- >can be implemented as a call to the subsequent stage, and the
- >last stage outputs the edges of the clipped polygon, possibly
- >with degenerate edges along the sides of the clipping region.
- >
-
- Note that this method is often slower, as it prevents trivial
- rejection if the earlier clipping stages would have completely
- eliminated the polygon.
- --
- *-------------------------------------------*---------------------------*
- |Chris Green - Graphics Software Engineer - chrisg@commodore.COM f
- | Commodore-Amiga - uunet!cbmvax!chrisg n
- |My opinions are my own, and do not - icantforgettheimpression o
- |necessarily represent those of my employer.- youmadeyouleftaholeinthe r
- |"A screaming comes across the sky..." - backofmyhead d
- *-------------------------------------------*---------------------------*
-