Adding consolidation to flatten a scene into a single mesh