04/15/2003
15-462 Graphics I
7
Marching Squares
Sample function f at every grid point x
i
, y
j
For every point f
i j
= f(x
i
, y
j
) either f
i j
·
c or f
i j
> c
Distinguish those cases for each corner x
White: f
i j
·
c
Black: f
i j
>
c
Now consider cases for curve
Assume smooth
Ignore f
i j
= 0