IFC with negative openings - different result

This forum section is only for IFC-related issues
Post Reply
smo
Posts: 3
Joined: Tue Dec 14, 2021 2:14 pm

IFC with negative openings - different result

Post by smo »

Hi

I'm importing IFC's into Freecad which have negative volumes but I get different results.
In attached there are 1004-1 and 1005-1, 1004-1 imports correctly in Freecad, but with 1005-1 I see a part that should not be there, because it is in the negative volume. In BimVision the IFC's show up correctly.

Now my questions are :
  • Can I solve this during import ?
  • Is the IFC not correct or does the import goes wrong ?
Thanks
Attachments
1005-1.ifc
(12.71 KiB) Downloaded 72 times
1004-1.ifc
(12.72 KiB) Downloaded 64 times
Freecad 0.19.3
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: IFC with negative openings - different result

Post by paullee »

Welcome! :)

Moved thread to IFC sub-forum.
smo
Posts: 3
Joined: Tue Dec 14, 2021 2:14 pm

Re: IFC with negative openings - different result

Post by smo »

Sorry for posting not in the correct subforum (had not seen there was one for IFC)

Additional info: I think this was working correctly in version 0.18. Are there new parameters that influence this import in 0.19 ?
Freecad 0.19.3
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: IFC with negative openings - different result

Post by Roy_043 »

Interesting files.

Both cause a crash in:

Code: Select all

OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.26620 (Git)
Build type: Release
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: Dutch/Netherlands (nl_NL)
No crash here:

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Dutch/Netherlands (nl_NL)
smo
Posts: 3
Joined: Tue Dec 14, 2021 2:14 pm

Re: IFC with negative openings - different result

Post by smo »

I downloaded :
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Dutch/Netherlands (nl_NL)

Then import 1004-1.ifc -> no errors, correct representation. Import 1005-1.ifc -> see error below from trace + not the correct representation. There is a part visible that should not be visible due to the negative elements.

09:44:29 Debug: Error computing areas for STEKER : unable to project face: [Vector (5280.983190218481, -44.4500007629395, 6292.317026528719), Vector (5382.640897445215, -0.0851506584977398, 6302.363346298014), Vector (5280.983190218481, -39.4500007629395, 6292.317026528719)] (face normal: Vector (-0.09834589448436228, -0.0, 0.9951522923844726) )
2021-12-28 freecad error.png
2021-12-28 freecad error.png (21.21 KiB) Viewed 2755 times
Freecad 0.19.3
Post Reply