You can use the above simulation to find out the condition for the dove prism to work.
i.e. How to cut a prism into a dove prism.
[img]http://upload.wikimedia.org/wikipedia/commons/e/e7/Dove-prism.png[/img]