Closed suryakumara closed 3 months ago
Hi @suryakumara if you don't want to coordinate the buildings with each other, you can just set the coordinate parameter of the IFCLoader to false.
As for the spatial structure, can you please open a separate issue and provide a minimal app and some models where we can reproduce it? I suggest you use the classifier tutorial as a starting point. Thanks!
@agviegas I have another problem, when I set the coordinate to false, the position of loaded multiple buildings will reset to 0 or the center of the three.js scene. However, the position of the y-axis is not. Not all buildings are on the same ground axis. shown in the figure bellow. I have tried to use classifiers and spatial structure however is not fit well with multiple buildings. somehow other ifcBuildingStoreys is not showing up. To debug this I have attached the codesanbox link
https://codesandbox.io/p/sandbox/ifc-loader-minimum-fnwf79?file=%2Fsrc%2FIFCViewer.js
Structure actually need to show this storeys
@suryakumara I'm not sure I'm following, but I'll do my best:
Model position: when you set coordinate to false the IFC is displayed exactly in the position where it was exported, which might not be with its ground level in the plane Y=0. That said, if it's not behaving the way you expect, you can send me the models privately to antonio@thatopen.com and I'll take a look.
Model tree: you mean that you are missing some storeys, right? You can send me the models privately to antonio@thatopen.com and I'll take a look.
Anyways, for traceability's sake, it's better to keep 1 problem per issue. So feel free to open a new issue ticket and send me the models, and I'll take a look.
Describe the bug 📝
I am a long time user of IFC Loader, currently my database is still using IFC file so my step is to load the ifc file and directly change it to fragments
I am trying to load multiple buildings, but each building is not centered of threejs scene. It seems that the position of each building follows the position of the first loaded building.
Additionally, I don't fully understand how the classifier works. When I load multiple buildings and implement the spatial structure, not all floors appear.
Here is my code:
Used Package Manager 📦
pnpm
Error Trace/Logs 📃
No response
Validations ✅