Some refactorings at the VRML viewer