Created command checkview for displaying shapes.
Correctly treat the case when the line is a trimmed curve. Test-case for issue #26016