n class="n">hull</span><span class="p">)</span>

                <span class="c1"># Construct the polygon</span>
                <span class="n">polygon</span> <span class="o">=</span> <span class="p">[</span><span class="n">layout</span><span class="p">[</span><span class="n">idx</span><span class="p">]</span> <span class="k">for</span> <span class="n">idx</span> <span class="ow">in</span> <span class="n">hull</span><span class="p">]</span>

                <span class="k">if</span> <span class="nb">len</s