This applet explain about Ray tracing (polygon: range from 3-32 faces) created by prof Hwang
Modified by Ahmed
Original project [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1434.0]Ray tracing (polygon: range from 3-32 faces)[/url]
The intensity was calculated for s-wave.
The subroutine for p-wave is also available in the xml source.
Click [b]show all[/b] chekbox to show all the rays with equal intensity. (Maximum number of trace can be changed with right slider 3-20)
If the [b]drag mode[/b] is checked, you can drag the whole polygin.
otherwise, you can drag each corner to change the shape of the polygon (with restrictions).
You can dray the arrow to change it's location or direction (depends on where you drag).
It can be drag inside the polygon,too!
un-check the checkbox labeled "[b]check[/b]" if you want to created inward type polygon shape.
The following simulation assume the ray will not enter the polygon more than once.