</span>
                <span class="n">index</span> <span class="o">=</span> <span class="mi">2</span> <span class="k">if</span> <span class="n">dimensionality</span> <span class="o">==</span> <span class="mi">2</span> <span class="k">else</span> <span class="mi">0</span>
                <span class="n">orientation</span> <span class="o">=</span> <span class="n">get_integer_index</span><span class="p">(</span><span class="n">vh</span><span class="p">[</span><span class="n">index</span><span class="p">,</sp