After upgrading to the latest components version and using the web-ifc 0.0.50 wasm, our "center camera on object" functionality, which is based on the official docs, stopped working and I've managed to narrow it down to a problem with the FragmentBoundingBox of the loaded model.
We're getting strange values from the bounding box get, getMesh and getSphere methods after this upgrade. These values make the model vanish from view and the camera becomes unresponsive.
This is what the values look like before upgrading (1.3.0/0.0.46):
This is what they look like after upgrading (1.3.2/0.0.50):
The Z value is particularly large, but also the other values are very different.
Is there a different/better way to get the bounding box values now, or is this a bug?
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
[X] Check that this is a concrete bug. For Q&A join our Community.
Describe the bug 📝
Hello,
After upgrading to the latest components version and using the web-ifc 0.0.50 wasm, our "center camera on object" functionality, which is based on the official docs, stopped working and I've managed to narrow it down to a problem with the FragmentBoundingBox of the loaded model.
We're getting strange values from the bounding box
get
,getMesh
andgetSphere
methods after this upgrade. These values make the model vanish from view and the camera becomes unresponsive.This is what the values look like before upgrading (1.3.0/0.0.46):
This is what they look like after upgrading (1.3.2/0.0.50):
The Z value is particularly large, but also the other values are very different.
Is there a different/better way to get the bounding box values now, or is this a bug?
Reproduction ▶️
No response
Steps to reproduce 🔢
https://docs.thatopen.com/Tutorials/FragmentBoundingBox
After loading the model we do:
And when centering we do:
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅