8.15 Consider a circle centered at the origin: x2+y2=r2. If we know that
a point (x, y) is on the curve than, we also know (−x, y), (x, −y),
(−x, −y), (y, x), (−y, x), (y, −x), and (−y, −x) are also on the curve. This
observation is known as the eight–fold symmetry of the circle.
8.16 If we look at all the paths generated by flood fill they visit each
square once. Thus if we were to draw lines between these paths we would
have a maze. Alternately, we can start with cells in which all walls are
8.17 Flood fill should work with arbitrary closed areas. In practice, we can
8.18 Suppose that the equation of the edge is y=mx +hwhere mand h
are determined from (x1, y1) and (x2, y2). For any change ∆yin y, the
corresponding change in xmust be ∆x=1
m∆y. Thus if (xi, yi) is the
8.19 Note that if we fill by scan lines vertical edges are not a problem.
Probably the best way to handle the problem is to avoid it completely by
never allowing vertices to be on scan lines. OpenGL does this by having
4