| Algorithm 2 Setup-Hit-Triangles |
| 1: Combination of triangles by G mode, index: 2: Listener |
|
3: Sound source 4: PathCacheBuffer of 5: Triangle, depth:d = 6: Type of {Reflection, Diffraction, None} 7: procedure Setup-hit-triangles 8: Merge sort combinations in and combinations in 9: for 10: for 11: 12: if is a reflection type then 13: Calculate image mirror positions based on 14: update the image mirror positions 15: else if is a diffraction type then 16: Calculate edge information based on 17: update edge information |
|
18: else // None 19: continue 20: end if 21: end for |
| 22: end for |
| 23: end procedure |