Computer Graphics U2
Computer Graphics U2
in
UNIT_-2
- Some scan-line intersection at polygon vertices require special handling. A scan line
passing through a vertex as intersecting the polygon twice. In this case we may or may
not add 2 points to the list of intersections, instead of adding 1 points. This decision
depends on whether the 2 edges at both sides of the vertex are both above, both below, or
one is above and one is below the scan line. Only for the case if both are above or both
are below the scan line, then we will add 2 points.
- The above algorithm only works for standard polygon shapes. However, for the cases
which the edge of the polygon intersects, we need to identify whether a point is an interior
or exterior point. Students may find interesting descriptions of 2 methods to solve this
problem in many text books: odd-even rule and nonzero winding number rule.
Smartzworld.com 1 jntuworldupdates.org
Smartworld.asia Specworld.in
- More efficient methods fill horizontal pixel spands across scan lines, instead of
proceeding to neighboring points.
Smartzworld.com 2 jntuworldupdates.org
Smartworld.asia Specworld.in
Smartzworld.com 3 jntuworldupdates.org