-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up after use #36
Comments
You can remove now the models one by one using |
@jscastro76 That sounds great, thanks |
@jscastro76 Also, is there a way to turn off the wireframe around a model, but still be able to select, and highlight, etc. |
you can set |
Gotcha, sould would I use this to remove or clean all: |
On the bounding box, thanks that is great |
I'm working quickly to deliver v.2.0.5 with these changes done, so you will only need to call
I have no time to add issue #3 for this release, so you should set those to null in every object loaded, so I would do something like this... tb.loadObj(options, function (model) {
model.setCoords(originCoords);
model.boundingBox = null; //this removes the yellow/green box
model.boundingBoxShadow = null; //this removes the black floor projection box
tb.add(model);
}) |
Awesome, will do. |
that works perfectly |
I have in my process a way to load new models on demand, but there will be a set for each location via xml, is there a way to clean up or dispose of all models, prior to loading new ones? I did see a way to completed dispose of tb, but only if you you navigating away from the site, is there a way to keep it clean as you go, and only clean up sets of models.
The text was updated successfully, but these errors were encountered: