3d-viewer:  code cleaning.