• Remix
  • Share
  • New Entry

on 10 Oct 2021
  • 61
  • 160
  • 0
  • 0
  • 230
% Taubin's Heart in MATLAB
% By Victoria A. Sablina
x=-10:.05:10;
[X,Y,Z]=meshgrid(x);
V=(X.^2+9/4*Y.^2+Z.^2-1).^3-X.^2.*Z.^3-9/80*Y.^2.*Z.^3;
P = patch(isosurface(X,Y,Z,V,0));
isonormals(X,Y,Z,V,P);
P.FaceColor = 'r';
P.EdgeColor = 'none';
daspect([1 1 1])
view(3);
camlight
lighting gouraud
axis off
Remix Tree