Rebuilding the Scene

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';
}

Remember, we save the structured object in the IndexedDB.

Screenshot from Chrome

TODO

Last updated