ifcquery/ifcplusplus

Bug in readEntityArguments when ENABLE_OPENMP

ExternPointer opened this issue · 1 comments

There is some code in the method for compatibility with old IFC formats.
File: ReaderSTEP.cpp, line 649
image

This code can not works in parallel, because one style can be related to several entities. As a result we have broken styles:
image

PROPOSITION: Parse file as usual and then "tweak" styles (just move this code to new loop after OMP section). Result:
image

Fixed method:
https://gist.github.com/ExternPointer/1ccd55f3e9fec1eb37236a06dbe5d68e

Thanks for the hint!
I will include the fix in the next release.