Issue #4: some minor refactoring of how meshes are rendered