milad did you check the optics ejs applet you can find at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=12.0]Optics[/url] have examples for many prism, may you check.