文档介绍:计算机图形学分形几何双语教学
*
第1页,共46页,编辑于2022年,星期三
Chapter 8 Fractal Geometry分形几何
*
第2页,共46页,编辑于2022年,星期三
8.… … …
1/n n 1
1=N·r1
*
第16页,共46页,编辑于2022年,星期三
⑵square (s=1)
scale number area
(r) (N) (s)
1/2 4 1
1/3 9 1
… … …
1/n n2 1
1=N·r2
*
第17页,共46页,编辑于2022年,星期三
⑶ a cube (v=1)
scale number volume
(r) (N) (s)
1/2 23 1
1/3 33 1
… … …
1/n n3 1
1=N·r3
*
第18页,共46页,编辑于2022年,星期三
r — scaling factor
N — the number of subparts
N·rD=1 D=㏒N/ ㏒(1/r)
*
第19页,共46页,编辑于2022年,星期三
*
第20页,共46页,编辑于2022年,星期三
· initiator — start with a given geometric shape
Geometric Construction of Deterministic Self-Similar Fractals
· generator — subparts of the initiator are replaced with a pattern
*
第21页,共46页,编辑于2022年,星期三
Basic idea: construction of the von koch
each segment in (1) is replaced by an exact copy of the entire figure, shrunk by a factor of 3. The same process is applied to the segments in (2) to generate those in (3).
*
第22页,共46页,编辑于2022年,星期三
①
②
③
④
600
-1200
600
(xs , ys)
Angle :
>0 counterclockwise direction
<0 clockwise direction
*
第23页,共46页,编辑于2022年,星期三
global variables:
int th; current value of
float x, y; x, y coordinates
float d; the length of each segment
d=L/mn m: 等分数
*
第24页,共46页,编辑于2022年,星期三
Void Generate – koch (n) //n : recursive depth
{ if (n=0)
{ x+=d*cos (th*)
y+