GithubHelp home page GithubHelp logo

Comments (5)

dontbmh avatar dontbmh commented on August 18, 2024

S2.zip
I've attached my test ifc file here.

from xbimgeometry.

dontbmh avatar dontbmh commented on August 18, 2024

is it appropriate to replace IIfcGeometricRepresentationItem with IIfcRepresentationItem all the way down to the XbimGeometryCreator?

from xbimgeometry.

CBenghi avatar CBenghi commented on August 18, 2024

Hello there,
I've made a couple of changes to geometry to handle the error more gracefully and load most of the model. There are still problems with the file and I've added a test case to geometry to keep track of the problem.
I'll involve @SteveLockley here to make sure that we don't introduce regressions and come back to you.
Best,
Claudio

from xbimgeometry.

CBenghi avatar CBenghi commented on August 18, 2024

Hello,
I'm back with bad news I'm afraid.
The reason of the problem seems to sit with an invalid structure of the file.
I've extracted the minimal case to reproduce the error in this file:

https://github.com/xBimTeam/XbimGeometry/blob/22f8c436f927c38dc76dfb75ec1814c9f92b599e/Xbim.Geometry.Engine.Tests/SolidTestFiles/CatiaIfcOpenShellTest.ifc

But then it emerged that the problem is in the file.

IfcShapeRepresentations have specific clauses in the ifc schema that constrain its usage and the one in question (Entity #1494003) fails two requirements:

WR22 : No topological representation item shall be directly used for shape representations, with the exception of IfcVertexPoint, IfcEdgeCurve, IfcFaceSurface. And,
WR24 : Checks the proper use of Items according to the RepresentationType.

This is actually a problem that you should notify the good folks of Catia; They should export an IFCSHELLBASEDSURFACEMODEL between the IFCSHAPEREPRESENTATION and the IfcOpenShell.

The fix on the model is simple and it's as follows:
#1494003 needs to be changed and #1775737 to be added from scratch.

#1494003=IFCSHAPEREPRESENTATION(#14,'BODY','SurfaceModel',(#1775737));
#1775737=IFCSHELLBASEDSURFACEMODEL((#1503330));

you can download the fixed file from https://github.com/xBimTeam/XbimGeometry/blob/b97b017cfb3c8e32b0a9bd191b2a0763cd72b348/Xbim.Geometry.Engine.Tests/SolidTestFiles/CatiaIfcOpenShellTest.ifc

I hope this helps.
Claudio

from xbimgeometry.

dontbmh avatar dontbmh commented on August 18, 2024

Thanks for your detail reply.

According to buildingsmart's specs, I believe you are right.
Any topological representation directly used for shape representation seems violating the ifc definition.
I would make a temporarily "hack" on my fork in order to complete my export work and contact catia later.

Cheers.
Dirk

from xbimgeometry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.