web-ifc-viewer icon indicating copy to clipboard operation
web-ifc-viewer copied to clipboard

Center camera on IFC subset element using the expressID

Open ghost opened this issue 3 years ago • 3 comments

How can I center the camera on a IFC element using the expressID?

Thanks

ghost avatar Oct 05 '22 15:10 ghost

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.

tymokvo avatar Nov 09 '22 17:11 tymokvo

@ldv-orbyta did the solution by @tymokvo solved your issue?

aka-blackboots avatar Dec 01 '22 23:12 aka-blackboots

I solved the issues creating a new subset and using cameraControls.fitToBox() to center it in the camera view

ldv-orbyta avatar Dec 02 '22 11:12 ldv-orbyta