BIMsurfer icon indicating copy to clipboard operation
BIMsurfer copied to clipboard

Any documentation to build and run bim surfer or viewer as a web project

Open SomeCoolApps opened this issue 5 years ago • 8 comments

Hi,

I want to be able to run the bim viewer or surfer as a standalone application inside a web server. can someone please guide me here. I want to understand how the project can be built and what artifacts/dependencies it requires to run in a webserver.

Thanks

SomeCoolApps avatar Nov 11 '19 14:11 SomeCoolApps

+1 to this. Is this possible? Or does it require a BIMServer instance?

Moult avatar Jan 21 '20 00:01 Moult

It requires no dependencies to "run in a webserver". It's all static content, so any webserver will do. Also there is no need to build it, since most browsers are happy to accept ES6 these days. You can also transpile to other ES versions if that's your thing.

rubendel avatar Jan 30 '20 14:01 rubendel

I interpreted the question as how to get it to run bimsurfer to load a regular IFC file without needing a bimserver instance - that way it is "standalone". Is it possible?

Moult avatar Jan 30 '20 20:01 Moult

Ah I understand. No that's most definitely not possible. You see, parsing an IFC file would in theory be possible (you'd be running into memory issues pretty soon though, since most desktop/laptops are not equipped with the kind of memory a server usually has). More importantly, the process of generating triangles (required for visualization) requires very complex libraries that to my knowledge are not available for JavaScript. For this process, BIMserver uses IfcOpenShell, which in turn uses OpenCascade for the heavy lifting, hope that makes sense.

rubendel avatar Jan 31 '20 08:01 rubendel

Oh, I didn't mean directly from IFC - for example in BIMSurfer v2 it can take a glTF and XML produced by IfcConvert. Can this BIMsurfer do the same?

Moult avatar Jan 31 '20 09:01 Moult

Ah oke, no that's not implemented. There are many browser based viewers that can load glTF, I don't really see why you would use BIMsurfer for that.

rubendel avatar Jan 31 '20 09:01 rubendel

I think because in BIMsurfer v2 although the glTF serves the geometry, it is paired with an XML that represents the IFC metadata - BIMSurfer v2 seemingly can link the two together. As far as I am aware, the other browser based viewers that load glTF just load glTF and don't have nice IFC metadata integration features.

Any plans for supporting something similar in the future? It would be quite nice, as running BIMServer may not be for everyone.

Moult avatar Jan 31 '20 10:01 Moult

There are no plans to support this (but he it's open source ;)). BIMsurfer V3 is basically only a 3D viewer, no BIM data is shown, even though it's loaded from a BIMserver.

rubendel avatar Jan 31 '20 10:01 rubendel