Closed larsmoa closed 7 years ago
I seem to be able to convert the file (on Windows). However, I am using OCCT (occt-V7_0_0-9059ca1) instead of OCE:
15:12:29>..\IfcConvert.exe segfault.ifc --verbose
IfcOpenShell IFC2X3 IfcConvert 0.5.0-dev
A file 'segfault.obj' already exists. Overwrite the existing file?
y
Scanning file...
Done scanning file
Creating geometry...
Done creating geometry (1 objects)
Log:
[Notice] exclude entities IfcOpeningElement IfcSpace
[Notice] Using world coords when writing WaveFront OBJ files
[Warning] {1WOps__U9F_eBVZkg0LQu3} Subtracting combined openings compound failed:
#280284=IfcWall('1WOps__U9F_eBVZkg0LQu3',#41,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:686430',$,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:680825',#265692,#280282,'686430')
[Error] {1WOps__U9F_eBVZkg0LQu3} Invalid result from subtraction:
#280284=IfcWall('1WOps__U9F_eBVZkg0LQu3',#41,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:686430',$,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:680825',#265692,#280282,'686430')
[Warning] {1WOps__U9F_eBVZkg0LQu3} Subtraction yields unchanged volume:
#280284=IfcWall('1WOps__U9F_eBVZkg0LQu3',#41,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:686430',$,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:680825',#265692,#280282,'686430')
[Error] {1WOps__U9F_eBVZkg0LQu3} Invalid result from subtraction:
#280284=IfcWall('1WOps__U9F_eBVZkg0LQu3',#41,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:686430',$,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:680825',#265692,#280282,'686430')
[Warning] {1WOps__U9F_eBVZkg0LQu3} Subtraction yields unchanged volume:
#280284=IfcWall('1WOps__U9F_eBVZkg0LQu3',#41,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:686430',$,'Basic Wall:Innervegg 95 stålstender 2x13 gips EI30:680825',#265692,#280282,'686430')
[Error] Unable to write output file 'segfault.obj'
Conversion took 31 seconds
I'll have a go with OCCT 7.0 (I didn't realize that version 7 was supported yet).
Updated the output with --verbose switch.
I can confirm that this works correctly with OCCT 7.0 - thx :)
IfcOpenShell's build scripts currently use older version of OCE/OCCT by default, so probably would be nice to find a fix for this that doesn't require newer OCCT.
Is there any reason why the build scripts should keep on using an older version by default?
Reasons include(d):
IfcConvert segfaults on a IfcWall with openings. I've created a minimal reproducible example: segfault.zip.
Stacktrace:
IfcOpenshell rev: 8481308 OpenCascade community edition rev: 731b697ec (branch 691patched_3)
PS! I've created a small tool for extracting parts of an IFC file by line-id for generating minimal reproducible examples. It's available at https://bitbucket.org/rendradev/ifcextract if that would be helpful in the future.