- /
-
Window pane design with Delaunay Triangulation (my fav)
on 18 Oct 2021
- 54
- 123
- 7
- 0
- 239
n=2000;
x=rand(n,1);
y=rand(n,1);
dt=delaunayTriangulation(x,y);
t=dt.ConnectivityList;
p=dt.Points;
c=rand(length(p),3);
figure('color','k')
patch('faces',t,'vertices',p,'facevertexcdata',c,'edgecolor','k') ;
shading faceted
axis off
axis([0.2 0.8 0.2 0.8])