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

Could't get ifc wall vertices #940

Open
zaizou opened this Issue Feb 18, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@zaizou
Copy link

zaizou commented Feb 18, 2019

HI,
I am trying to get the vertice of the spaces and the walls inside storey in order to apply the TIN technique, the, The code wich I used to extract vertices from IfcSpace (I got it from floor generator plugin ) object is working, but when I try to use it it don't work and stay in an infinite loop, the same thing when I try to get IfcWall vertice using "ifcWall.getGeometry().getData().getVertices();".

To Reproduce
Steps to reproduce the behavior:

  1. Gotting an IfcWall element
  2. call getVertices method "ifcWall.getGeometry().getData().getVertices();"

Expected behavior
Having the ifcWall vertices.


Link of the code I used to get IfcSpaces Vertices :
https://github.com/opensourceBIM/floorplan-generator/blob/master/src/org/bimserver/cobie/graphics/VertexExtractor.java

@rubendel

This comment has been minimized.

Copy link
Member

rubendel commented Feb 20, 2019

The link is not working here. Can you specify exactly where the infinite loop happens? Does it happen in BIMserver or your own code?

@zaizou

This comment has been minimized.

Copy link
Author

zaizou commented Feb 21, 2019

I am creating a new plugin
Here is the right link of the code which I am using :
https://github.com/opensourceBIM/floorplan-generator/blob/master/src/org/bimserver/cobie/graphics/VertexExtractor.java

Event when I try this code, the second println is not called.
`
List walls = model.getAll(IfcWall.class);
if(walls.size()>0)
System.out.println(walls.get(0).getGeometry().getData().getVertices());
System.out.println("Wall vertices printed");

I also tried to set the parameters "deep" and "get geometry" of the method getModel but I am facing the same issue.
`

@zaizou zaizou changed the title Could get ifc wall vertices Could't get ifc wall vertices Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.