Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize BIM DATA in Itowns. #1185

Open
JeanChristopher opened this issue Jul 18, 2019 · 5 comments
Open

Visualize BIM DATA in Itowns. #1185

JeanChristopher opened this issue Jul 18, 2019 · 5 comments

Comments

@JeanChristopher
Copy link

Hello ! I was wondering if we could visualize BIM (.IFC) data in Itowns.

Context

For my project, I have to build a 3D indoor navigation app for buildings.
So the data that I have are in .IFC format.
Before I jump into coding, I want to be sure that Itowns allow to perform this operation.

Expected Behavior

Indoor navigation in a 3D building with postgrest

Possible Cause/Fix/Solution

Could we use a geojson converted BIM (.IFC) data and to perform this operation ?
Dont know !

@zarov
Copy link
Contributor

zarov commented Jul 18, 2019

Hi ! I never did BIM in iTowns, but I know that @gmaillet successfully did it with data coming from a bim server. I don't know the structure of a BIM, but maybe to simplify things you can write/find a plugin doing the conversion to geojson, and give this geojson to iTowns as you said.

@gmaillet
Copy link
Collaborator

Hello,
There is nothing in iTowns to natively load IFC data, but you have at least two options:

  • convert your data in a standard 3D geometric format (Ply, Obj, ...) and then use a ThreeJS loader and insert objects in the scene tree
  • import your data in a BimServer, request geometries and properties and insert objects in the scene tree.

The first option is the easiest (try IfcConvert for example), but you loose all the properties of the BIM model.
For the second one, I have tested BimServer 1.5.138 (https://github.com/opensourceBIM/BIMserver/releases) and I took example on BimSurfer to know how to request the server from Js. In my case, I used the old version of BimSurfer (https://github.com/opensourceBIM/BIMsurfer-before2019), but it's probably a better idea to use the new one (https://github.com/opensourceBIM/BIMsurfer).

A GeoJson convertion is a good idea to keep the geometric information with all the properties but I don't know if there is open source solution for that? If you have it, it's easy to load GeoJson in iTowns.

@JeanChristopher
Copy link
Author

JeanChristopher commented Sep 4, 2019

Hello @gmaillet,

Thanks for your answer. Indeed, I proceeded with the second option you suggested. I'm working with Bimserver 1.5.162 and succeeded in requesting and displaying the ifc data with BimSurfer 3. What I want then is to load the IFC data in Itowns using BimSurfer.

But I'm stuck with how to use the Itowns scene tree for BimSurfer.

Can you please explain me how you managed to get it done ?

@gchoqueux gchoqueux added this to the to strike milestone Jan 17, 2020
@AugmentedGeoBae
Copy link

For IFCConvert in the IfcOpenShell project: http://ifcopenshell.org/ifcconvert

If you create a OBJ or DAE along with a separate XML of the same model, you could write some custom code to get the ID of a piece of geometry which is also the BIM element ID and then look it up in the XML file.

This is a guide for using this method in C# which may be useful when designing the JS front-end code: http://cad-3d.blogspot.com/2018/09/getting-bim-data-into-unity-part-9.html

@mgermerie
Copy link
Contributor

The solution to visualize BIM would be to use the IFC loader of Three.js. An example is planed in the road map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants