Comments (5)
S2.zip
I've attached my test ifc file here.
from xbimgeometry.
is it appropriate to replace IIfcGeometricRepresentationItem with IIfcRepresentationItem all the way down to the XbimGeometryCreator?
from xbimgeometry.
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.
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:
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.
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)
- net6.0 support HOT 4
- Cant create valid IfcSurfaceCurveSweptAreaSolid HOT 1
- Getting correct position of the model in world coordinates
- How to set up local development environment to fix bug's and create PR to contribute in xbim repositories. HOT 1
- How to get outer Edges for an IfcEntity using Xbim library ? HOT 8
- Load Ifc File System.AccessViolationException HOT 4
- Big size of result IFC file HOT 3
- XbimShapeInstance.Transformation places instance in world coordinates HOT 1
- Setting model units HOT 3
- Is v6 geometry engine currently much slower than v5?? HOT 2
- System.OutOfMemoryException. Array dimensions exceeded supported range. HOT 5
- GetShellPoints of a component HOT 1
- Failed to load IFC file: failed to load Xbim.Geometry.Engine64.dll HOT 6
- We need to get plot line bounding box distance for all levels. HOT 1
- We need to get shellpoints of any Building elements. HOT 1
- How to get face points of any building element. HOT 1
- ShapeUpgrade_UnifySameDomain causes a freeze HOT 5
- How to find Width of IfcRamp element?
- Degenerate wire leads to crash (BRepAdaptor_CompCurve) HOT 1
- WexBim viewer is not showing the geometry correctly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbimgeometry.