s="comment">% setup display</span>
    hold <span class="string">on</span>; axis <span class="string">equal</span>; l = light;
    axis ([20 80 20 80 0 100]);
    view([40 20]);

    <span class="comment">% decorate</span>
    strTitle = sprintf(<span class="string">'Cylinder, ori=[%d %d]'</span>, angles(i, :));
    title(strTitle);

    snapnow;

    <span class="comment">% add surfacic mesh</span>
    drawCylinder(cyl, <span class="string">'FaceColor'</span>, <span class="string">'r'</span>, <span class="