STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by bernd »

easyw-fc wrote:
triplus wrote:
vejmarie wrote:Yes it should !
P.S. What is the link to that huge STEP file you once mentioned?
https://github.com/sgrogan/FreeCAD/rele ... teptest.7z
a similar complex model but from a building could be imported by ifc into FreeCAD. See topic https://forum.freecadweb.org/viewtopic. ... 131#p40373
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by vejmarie »

I got an IFC not supported on my system. Any idea on how to enable it ?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by NormandC »

Arch IFC
The importer is still a work in progress, and depends on an external piece of open-source software, called IfcOpenShell, which is not bundled with FreeCAD and must be installed on your system.
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by easyw-fc »

vejmarie wrote:I got an IFC not supported on my system. Any idea on how to enable it ?
https://www.freecadweb.org/wiki/index.p ... enShell/en
There are some tips also for OSX
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by bernd »

vejmarie wrote:I got an IFC not supported on my system. Any idea on how to enable it ?
I'm gone provided an step, but it will take a few hours, because ifc importer in FreeCAD is not optimized on speed.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by bernd »

vejmarie wrote:I got an IFC not supported on my system. Any idea on how to enable it ?
If you would import it yourself you would need to compile ifcopenshell. Some people did it on OSX too allready. See https://sourceforge.net/p/ifcopenshell/ ... rce=navbar The official github repo is https://github.com/IfcOpenShell/IfcOpenShell
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by wmayer »

vejmarie wrote:That is strange for the progress bar as I still do have it on MacOS with Qt4. I will have a look to the other point. Thanks to have merged the PR !
You can work on the second point if you like. I will work on the last two points then and will hopefully make a new PR soon.

About the progress bar:
It works with
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
But it neither works with
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10074 (Git)
Build type: Release
Branch: master
Hash: 34a3039577b20fcf69300f84ff59a140fe690aa6
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
nor with
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10073 (Git)
Build type: Debug
Branch: master
Hash: 69e027a6071cd9eafa1e7190c95d151949a39ca9
Python version: 2.7.8
Qt version: 5.6.0
Coin version: 4.0.0a
OCC version: 7.0.0
So it can also be an OCC 7 issue.
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by vejmarie »

I you remember I have push a PR a few days ago to increase the progress bar timing. Could it be related ? I don't think so, but we never know. One of the issue I faced was that the handling of the progress bar was taking a lot of time on MacOS and OCCT which was reporting too much things to the bar, it could have perhaps a side effect to "disable" it.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by wmayer »

vejmarie wrote:I you remember I have push a PR a few days ago to increase the progress bar timing. Could it be related ? I don't think so, but we never know. One of the issue I faced was that the handling of the progress bar was taking a lot of time on MacOS and OCCT which was reporting too much things to the bar, it could have perhaps a side effect to "disable" it.
I wouldn't have expected this but it's indeed your change that doesn't let the progress bar to progress.
User avatar
vejmarie
Posts: 713
Joined: Mon Jan 04, 2016 4:52 pm
Location: Somewhere between France, USA and Taiwan
Contact:

Re: STEP reader improvement (Pass 4): Moving to OpenGL 3.2

Post by vejmarie »

wmayer wrote: I wouldn't have expected this but it's indeed your change that doesn't let the progress bar to progress.
I wouldn't either. Let me try to understand why. Perhaps the restart call is resetting the progress bar ? It should be easy to fix.
Post Reply