Closed YannMermin closed 2 months ago
Hi Yann! This happens because you are calling dispose()
, which should be called only when your user walks away from your BIM viewer in your app to get rid of memory. If you remove that line, and only use it when you need to destroy the viewer, the issue should be solved. Let us know otherwise!
Describe the bug 📝
I am generating the model trees for all the models added into my scene. Using the classifier, I want to get the following lists :
For the first model loaded, no problem, it works fine and the lists are OK. But for all next models added into the scene, it will completly replace the previous classifier lists, and I can only access the last model's lists.
Here is the part of my code where I am getting the lists (call for all the models loaded)
`const classifier = components.get(OBC.Classifier); await classifier.dispose();
Reproduction ▶️
No response
Steps to reproduce 🔢
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅