• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 3
  • 27
  • 0
  • 0
  • 238
w= 1/2; % w = width of strip
k = 1; %number of half twists
n = 128;
[s,t] = meshgrid(-1:2:1, -1:2/n:1);
r = (1-w) + w*s.*sin(k/2*pi*t);
x = r.*sin(pi*t);
y = r.*(1 - (1-cos(pi*t)));
z = w*s.*cos(k/2*pi*t);
figure
surf(x,y,z, EdgeColor="none", FaceAlpha=0.5)
colormap cool
axis off
view([113.833 7.311])
Image
Remix Tree