Table .
Input:, |
Output: |
1: ; ; |
2: |
3: Σ = 0; |
4: while θ′ > 0 do |
5: ; ; ϕ′ = 0 |
6: while ϕ′ < 2π do |
7: x′ = r′cos ϕ′; y′ = r′sin ϕ′ |
8: x = −x′sin θ′ − (z′ − Rs)cos θ′; y = y′; z = x′cos θ′ − (z′ − Rs)sin θ′ {Convert to global coordinate system} |
9: xn = (x − xmin)/Δs; yn = (y − ymin)/Δs; zn = (z − zmin)/Δs |
10: Σ + = tex3D(xn, yn, zn) {Tri-linear interpolation} |
11: ϕ′ = ϕ′ + Δs/r′ |
12: endwhile |
13: |
14: endwhile |
15: |