Refactoring de la méthode BuildSceneGraph