《計算機圖形學基礎(OpenGL版)》勘誤表
阿新 • • 發佈:2019-01-23
頁碼 | 行或位置 | 原內容 | 更正為 | 備註 |
---|---|---|---|---|
38 | 9 | (1MB) | (128KB) | |
41 | 16 | |||
43 | 9 | |||
46 | 6 | |||
46 | 倒數第4行 | |||
47 | 26 | int curx = x1; | int curx = x1 + 1; | |
48 | 12 | |||
51 | 19 | 令點的座標為 | 令點的座標為 | |
52 | 10,12 | |||
52 | 倒數第3行 | Cirpot(x0, y0, x, y) | Cirpot(x0, y0, x, y, color) | |
53 | 9 | Cirpot(x0, y0, x, y) | Cirpot(x0, y0, x, y, color) | |
57 | 7 | FloodFill | FloodFill4 | |
57 | 13-16 | FloodFill4(…, newcolor) | FloodFill4(…, newcolor, boundaryColor) | |
58-59 | 58頁倒數第2行~59頁第11行 | 見教材 | 從點P向任意方向發出一條射線,若該射線與多邊形交點的個數為奇數,則P位於多邊形內;若為偶數,則P位於多邊形外部。當射線與多邊形邊界點的交點是多邊形頂點時(該交點稱為奇點,如圖3-13的,,和情況),如果把每一個奇點簡單地計為一個交點,則交點個數為偶數時P點可能在內部,如圖3-13中的情況。但若將每一個奇點都簡單地計為兩個交點,同樣會導致錯誤的結果,如圖3-13中的和情況。因此,必須按不同情況區別對待。一般來說,多邊形的頂點可分為兩類:極值點和非極值點。如果頂點相鄰的兩邊在射線的同側時,則稱該頂點為極值點(如圖3-13中的和);否則稱該頂點為非極值點(如圖3-13中的)。為了保證射線法判別結果的正確性,奇點交點的計數可以根據上述分類來採用不同的方式。當奇點是多邊形的極值點時,交點按照兩個交點計算,否則,按一個交點計算,如圖3.13所示。 | |
59 | 圖3-13 | 見教材 | ||
60 | 圖3.16 | |||
65 | 倒數第4行 | 圖3.22 | 圖3.23 | |
65 | 倒數第3行 | |||
73 | 6 | |||
75 | 8 | 相對於y軸的反射 | 相對於x軸的反射 | |
82/87 | 式(4.40/57) | |||
117 | 2 |