> For the complete documentation index, see [llms.txt](https://bimwhale.gitbook.io/ifc-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bimwhale.gitbook.io/ifc-js/saving-the-scene/rebuilding-the-scene.md).

# Rebuilding the Scene

Rebuilding the scene is as easy as building the scene.

{% code title="examples/web-worker/assets/js/rebuild-scene.js " %}

```javascript
function rebuildScene(structured) {
    structured.MainObject = mainObject; // Add back the mainObject
    structured = buildGeometry(structured); 
   
    scene.add(structured.MainObject);
    
    animate();
    
    document.getElementById('c').style.display = 'block';
}

```

{% endcode %}

Remember, we save the `structured` object in the IndexedDB.

![Screenshot from Chrome](https://1338860669-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSCCfuWwSmlrlrlRZ9a%2F-MSRNJhx_kpkbyMzHIM3%2F-MSRPhpzPPIHTAy6m8PJ%2Fimage.png?alt=media\&token=cc3f8b32-bc00-46aa-af3c-8f0c330b5374)

**TODO**
