Function generateShellFromSceneObjects