Rebuilding the scene is as easy as building the scene.
examples/web-worker/assets/js/rebuild-scene.js
function rebuildScene(structured) {
structured.MainObject = mainObject; // Add back the mainObject
structured = buildGeometry(structured);
scene.add(structured.MainObject);
animate();
document.getElementById('c').style.display = 'block';
}