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

Entity Faces and Edges #28

Closed
CBenghi opened this issue Oct 24, 2016 · 4 comments
Closed

Entity Faces and Edges #28

CBenghi opened this issue Oct 24, 2016 · 4 comments
Labels

Comments

@CBenghi
Copy link
Member

CBenghi commented Oct 24, 2016

From @miosepayo on February 24, 2016 20:3

Hi,

I plan to retrieve faces and edges (not triangulated) for physical entity (Wall, Beam etc ...). I guess this is releated to XBimShapeInstance but after searched the code for couple of day but don't get the best to way to achieve this. Any help ?

Is this related to MeshGeometry3DExtensions read method ? Case command for faces is empty ...

Thanks for your work on this project.

Copied from original issue: xBimTeam/XbimWindowsUI#25

@CBenghi
Copy link
Member Author

CBenghi commented Oct 24, 2016

From @miosepayo on March 8, 2016 10:23

Hello,

Any news/plans on this one ?

Best regards

@salvatore84
Copy link

Hello,

Any news on this issue?

Best regards

@martin1cerny
Copy link
Member

You can investigate Xbim3DModelContext to see how xBIM handles geometry processing.

@SteveLockley
Copy link
Member

If you look at the test cases in the geometry engine you will see how to get the BREP model for any shape in IFC, it is typically as simple as

  1. Create an instance of XbimGeometryEngine
  2. Obtain an Ifc 3D geometry entity from the model
  3. Call the appropriate geometry creator method for the 3D shape you have retrieved

In pseudo code
var geomEngine = new XbimGeometryEngine();
var extrudedSolid = model.Instances[123] as IIfcExtrudedAreaSolid;
IXbimSolid brepSolid = geomEngine.CrateSolid(extrudedSolid);

You will find IXbimSolid exposes all the properties you need for shell, face, edge, vertex exploration

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

No branches or pull requests

4 participants