Created command checkview for displaying shapes.
Capping algorithm - remember and restore depth function mode.