Spiral Cut Pumpkin
Eric Ludlam on 29 Oct 2022
% A pumpkin made from a spiral ribbon
%n=300;% Resolution of the sphere
%S=10;% Number of spirals
w=.07;% (1/S)*t; % Thickness of the ribbon as a factor of other vars
% Theta goes around S times, with n verts per round.
T=[T;T];% top and bottom of ribbon
% Phi slowly goes from -.5 to .5 (top+bottom of sphere) with same # verts
% as theta.
P=[P;P-w];% top and bottom of ribbon, thickness of w.
% Radius of punkin has bumps. R modulates # of bumps.
%nb=10;% Number of bumps around the sphere.
% Make the surface coordinates
axis equal off