Replies: 4 comments 2 replies
-
This file has a lot of (indexed) explicit polygonal meshes. Open Cascade is not very efficient in handling these. The BRep model has a lot of overhead for this particular case (edge curves, face surfaces, ...). BlenderBIM bypasses Open Cascade in these cases. You can read more about it here: #841 It is on the roadmap to generically handle this in IfcOpenShell by having alternative geometry implementations, but having this reliable and production ready is at least one year out. |
Beta Was this translation helpful? Give feedback.
-
Thank you all for the answers. So I tried
I can't find where i can disable the cache import. So for now, blender is importing the model in less than 4.7s and my test program in 12.4s If I find something else I 'll share it. |
Beta Was this translation helpful? Give feedback.
-
So I tried this, performance improvement is not really relevant, 5 seconds instead of 4. I'm not sure if performance loss is from this or because of other software, or measurement.
I'm working on ifc model viewer. So with this I do the following:
I replaced the use of
Here is my code if you need it: https://pastebin.com/EBc3Yfcs
I try some modification using context ids, without any improvement. May be I'm missing something ? Should I made my parsing differently ? I look to IfcParseExamples.cpp but I would like to avoid specifying IfcSchema. Again, thanks for your time, and I wish you a nice day. note: I try another file Duplex_Plumbing_20121113.ifc:
|
Beta Was this translation helpful? Give feedback.
-
I missed this bit:
This would be the first thing to try then. It depends a bit on what version of OCE you took, but for quite a while they were seriously lagging behind the official OCCT. If it means you end up using the OCE version of OCCT 6.9.x you'd miss out on a lot of performance improvements in OCCT wrt multi argument boolean operations. Looking at your code, maybe also try without If you compile your own IfcOpenShell, did you try replacing the _ifcopenshell_wrapper.pyd that comes out of your build with the one in blenderbim to rule out any compilation settings? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm working on a c++ project using IfcOpenShell lib.
I aim to load the model 2102_cira.zip, in attachement, as fast as blenderbim addon, without success.
My code load this model in 22 seconds, blenderbim in about 4 to 7 seconds.
To fix my problem i try different things:
So now i have some question:
Thanks you for your time I wish you a nice day
IOScompiltool.zip compilation protocol
libtest.zip minimum code to load an ifc file
2102_cira.zip original source from http://openifcmodel.cs.auckland.ac.nz/Model/Details/374 but down when i write this.
Beta Was this translation helpful? Give feedback.
All reactions