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

Crash processing IIfcExtrudedAreaSolid - Possible solution #504

Open
r-silveira opened this issue Nov 19, 2024 · 0 comments
Open

Crash processing IIfcExtrudedAreaSolid - Possible solution #504

r-silveira opened this issue Nov 19, 2024 · 0 comments

Comments

@r-silveira
Copy link

r-silveira commented Nov 19, 2024

I have a model that crashes when processing IIfcExtrudedAreaSolid.
After doing some tests, it seems to be a numerical precision issue. If I change the values ​​(like exporting using another tool) the model opens.

IFC excerpt with this issue:

Crash:
#141752=IFCCARTESIANPOINT((1532.4134018749912,-813.8026351546772));
#141753=IFCDIRECTION((-0.99938477594571395,-0.));
#141754=IFCAXIS2PLACEMENT2D(#141752,#141753);
#141755=IFCELLIPSE(#141754,1896.1585907663155,1894.1553580163991);
#141756=IFCTRIMMEDCURVE(#141755,(IFCPARAMETERVALUE(276.85116390029498)),(IFCPARAMETERVALUE(334.33161986185564)),.T.,.PARAMETER.);

Working:
#141752=IFCCARTESIANPOINT((1532.413401874991223,-813.802635154677205,0.));
#141753=IFCDIRECTION((-0.999384775945714,-0.));
#141754=IFCAXIS2PLACEMENT2D(#141752,#141753);
#141755=IFCELLIPSE(#141754,1896.158590766315456,1894.155358016399077);
#141756=IFCTRIMMEDCURVE(#141755,(IFCPARAMETERVALUE(276.851163900294978)),(IFCPARAMETERVALUE(334.331619861855643)),.T.,.PARAMETER.);

I made a fix for this, ignoring the invalid faces. I'll submit the PR.

I used this test model with the version Xbim Geometry v5.1.762-develop:

slab_issue.zip

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

No branches or pull requests

1 participant