Yes. It can be done.
Because you did not provide coordinates for the polygon shape, I modified the simulation so that you can help yourself.
Please visit [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1434]Ray tracing (polygon: range from 3-32 faces)[/url]
There is a form just below the simulation so that you can enter data points for the polygon.
1. number of polygon points (you should enter correct numer 33>N>2)
2. Xs and Ys coordinates for the polygon(in clockwise direction) you want to create ( comma separated values).
3. xs,ys coordinate for the laser pointer (light source).
Enter value and hit [b]setup (x,y)[/b] button ,and the simulation will display what you want.