-
Notifications
You must be signed in to change notification settings - Fork 132
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
How to get outer Edges for an IfcEntity using Xbim library ? #465
Comments
I'm assuming you're asking for the wireframe edges rather than the mathematical Edges? Unless @martin1cerny knows better I don't think there's a simple example showing how to extract this. It's possible this is easier in v6 GE now we have the full OCC model to work but it's not my skillset TBH |
How to get wire-frame edges (meaning that discretized edge by triangulation), even if we need to modify implementation of Xbim.Geometry and its APIs ? Things that I have done till now,
With these changes we create a custom local package and add it to our project to access the CreateEdgeGeometry from an instance of XbimGeometryEngine
Also, I've checked the latest v6 branch and see a lot of changes there ? Thank you !! |
@martin1cerny Thank you !! |
Hi @CCT-Mukund-Thakare , you are right, there are many changes coming with V6. We have been talking about edge generation for a long time but never got to it properly. It is great you have bought the bullet and went to implement it! I assume you are willing to contribute this back to the Toolkit project? Shall we organise a call to see how to work together on this? |
Hello @martin1cerny You can schedule a call according to your available time or let me know your available time I will arrange one call.
Thank you !! |
Hello @martin1cerny Thank you !! |
Hello @andyward @martin1cerny I have code ready at my end for getting the edges, I wanted to commit it. Any idea or suggestions on how can I push this branch to origin so that I can create PR and then have a discussion around it. Thank you !! |
You need to push the commits to your own github repo, and then you can make a PR back to the repo in XbimTeam i.e.
|
Hello @andyward,
I want to get the outer edges of the IfcEntity.
Is there any API already implemented in Xbim SDK, that will return the Edges for a IfcEntity ?
If not, How can I add an API in Xbim SDK to get such a edges ?
As per my current understanding and investigation,
I need to modify the XbimGeoemtryEngine repo for getting an edges, since XbimGeometryEngine uses native open cascade code to generate triangulation for an IfcEntity, I could see BrepIncremental mesh function is being used to get the triangulation for an IfcEntity.
Are there methods to get edges from XibmOccShape ?
What is most efficient way to generate edges for an IfcEntity in Xbim SDK ?
Which are the files I should modify in order to use this returnEdge API like any other API ?
What is an edge for a IfcEntity ?
In below reference image of IfcWall, The black outer border are the edges that I am referring to.
The text was updated successfully, but these errors were encountered: