- /
-
Random Blobs
on 18 Oct 2022
- 10
- 56
- 1
- 3
- 231
% Create blobs around some random points.
centers=30+20*(rand(20,3)*2-1);
B=blinnblob(centers,64,64,64);
S=isosurface(B,.1);
v=S.vertices;
S.FaceVertexCData=-hypot(v(:,1)-30,hypot(v(:,2)-30,v(:,3)-30));
patch(S)
shading interp
lighting g
axis equal off
camlight
colormap hsv
material metal