ace(circle, linspace(0, 4*pi/3, 50));

figure;
surf(x, y, t);
axis <span class="string">equal</span>;
</pre><img vspace="5" hspace="5" src="demoRevolutionSurface_01.png" alt=""> <h2>Draw a torus with vertical axis as revolution axis<a name="4"></a></h2><pre class="codeinput">circle  = circleToPolygon([10 0 3], 50);
revol   = [0 0 0 1];
[x y t] = revolutionSurface(circle, revol, linspace(0, 4*pi/3, 50));

figure;
surf(x, y, t);
axis <span class="string">equal</span>;
</pre><img vspace="5" hspace="5" src="dem