; <span class="comment">%#ok&lt;ASGLU&gt;</span>

<span class="comment">% display the polyhedron</span>
figure(1); clf;
drawPolyhedron(n, f);

<span class="comment">% graphical settings</span>
view(3);
axis <span class="string">equal</span>;
</pre><img vspace="5" hspace="5" src="demoTriangulateFaces_01.png" alt=""> <h2>Compute triangulation<a name="4"></a></h2><pre class="codeinput"><span class="comment">% Computation of triangulated mesh</span>
tri = triangulateFaces(f);

<span class="comment">% display ne