搜索资源列表
mountain
- 三维空间中的分形插值算法 ① 在X-Y平面上绘制一个n×n的正方形网格,并对4个角点在Z方向上分别设置初始高度ha,hb,hc,hd,得到A,B,C,D这4点(如图10.3所示)。 ② 根据式hm=(ha+hb+hc+hd)/4+△,计算正方形网格中点的高度hm,其中△为一随机量,从而得到M点。 ③ 根据角点和中点以及虚拟点,计算边中点的高度,即 he=(ha+hb+hm+0)/4+△ hf=(hb+hc+hm+0)/4+△ hg=(hc+hd+hm+0)/4+△ h
3-d-transformation
- 计算机图形学原理经典电子书里的三维转换源代码,-Computer graphics principles of classic books in the three-dimensional conversion source code
fractal
- matlab程序画图,常见分形图,function cantor(A,B) c=1 p=0 figure hold on plot([A(2) B(2)],[A(1) B(1)], r* ) while norm(A(1,:)-B(1,:))>=1 C=[] D=[] for i=1:size(A,1) a=A(i,:)+(B(i,:)-A(i,:))/3 b=A(i,:)+2*(B(i,:)-A(i,:))/3 C=