<p>Contours represent the boundaries of shapes and are categorized as:</p>
<ul>
<li><strong>Outer Contours</strong>: Define the external boundary of a shape, ordered in a counterclockwise direction.</li>
<li><strong>Inner Contours (Holes)</strong>: Define holes within a shape, ordered in a clockwise direction.</li>
</ul>
<hr />
<h2 id="overlay-graph"><a class="header" href="#overlay-graph">Overlay Graph</a></h2>
<p>The overlay graph is a data structure that represents the intersections and overlays of two g