web-ifc-viewer
web-ifc-viewer copied to clipboard
Center camera on IFC subset element using the expressID
How can I center the camera on a IFC element using the expressID?
Thanks
If you look through the methods in the documentation, you'll see that there's a method called pickIfcItemsById that takes an express ID and a boolean to indicate focusing the selection.
@ldv-orbyta did the solution by @tymokvo solved your issue?
I solved the issues creating a new subset and using cameraControls.fitToBox() to center it in the camera view