Closed jmmshn closed 4 years ago
In general, calling methods is asynchronous, so the results will not be immediately available. As such, it should be considered an advanced feature that will complicate you logic quite a bit. So you might be better off using something else to set the dimensions of box
.
If you still want to use setFromObject
asynchronously, your best bet would probably be to observe the scale of box
, and then react to that.
OK thanks for the quick response! I will do the computation of the bounding box elsewhere then.
Closing as answered then. Feel free to comment further if needed.
Hi, Thank you for this incredibly useful package! I have (perpaps a silly) question I'm having problems getting the bounding box of a object to display.
Below is a minimal example of the problem. The output is a box with zeros for the max and min boundary. Please let me know if I am misunderstanding something. Thanks!