Prism: added exception for degenerated prisms.