Minor refactoring to XML3DGeometry.