Figure 5: Different cases of boundary and neighboring points.