Created command checkview for displaying shapes.
Condition of adding one last knot corrected. Test-case for issue #25558