IFC Viewer ifcplusplus

This forum section is only for IFC-related issues
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

Wow cool, thanks rockn for this find.
rockn wrote:I have asked on http://forum.ubuntu-fr.org ,there is good guys also.
It could be a problem of compatibilty between Qt5 and Qt5 as Ifc++ viewer can be compiled with both.
Yeah, Fabian and Silvian both compile Ifc++ with Qt5 only. The problem is if Qt5 is used one needs to compile openscenegraph because the openscenegraph package on ubuntu and debian depends on Qt4. That is why I use Qt4 on the version I provide on github. I'm gone extend the README.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

rockn wrote:... Launch IFC++ viewer with this command on Ubuntu :

Code: Select all

./IfcPlusPlusViewer -style=fusion
Here is what I did on my ubuntu machine:

- sudo apt-get install qt4-qtconfig
- launch qtconfig-qt4
- change Select GUI Style (Cleanlooks works for me.)
- save

That way it is not needed to add the -style=fusion

Like Yorik I wonder what causes the default GUI Style to not load the widget content!?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

upgraded master to the newest commit of Fabian Gerold (R48)

https://github.com/berndhahnebach/IfcPlusPlus


FYI:
Only a few changes were needed to get IfcPlusPlus running on linux. We again are nealy at a point where the main repo runs on Linux out of the box.
https://github.com/berndhahnebach/IfcPl ... atestsvn48
User avatar
rockn
Veteran
Posts: 1791
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: IFC Viewer ifcplusplus

Post by rockn »

Thanks Bernd,
Compile ok and Run ok.
Formations - Assistance - Développement : https://freecad-france.com
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

rockn wrote:Thanks Bernd,
Compile ok and Run ok.
Thanks for testing.

Since you gone use dark theme on FreeCAD you may interested in following commit.

https://github.com/berndhahnebach/IfcPl ... 3cc66b13d5

in SimpleViewerExample/src/viewer/ViewerWidget.cpp in line 67 is the background color defined.

Code: Select all

	camera->setClearColor( osg::Vec4(0.70f, 0.70f, 0.70f, 1.0f) );
looks like this:
Attachments
screen.jpg
screen.jpg (55.44 KiB) Viewed 2888 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

merged R54 to the master of https://github.com/berndhahnebach/IfcPlusPlus


The linux version is only one commit away from Fabian Gerolds Repo https://github.com/berndhahnebach/IfcPl ... ecbc977e1e

GNU GCC does not accept the references of three member functions.

Code: Select all

...IfcPlusPlusGeometry/src/ifcppgeometry/CSG_Adapter.h:46:14: note:   no known conversion for argument 2 from ‘carve::geom::vector<4u>’ to ‘carve::geom::vector<4u>&’
IfcPlusPlusGeometry/CMakeFiles/IfcPlusPlusGeometry.dir/build.make:54: recipe for target 'IfcPlusPlusGeometry/CMakeFiles/IfcPlusPlusGeometry.dir/src/ifcppgeometry/ConverterOSG.cpp.o' failed
It seams on Windows this is not a problem, that is why Fabian is not changing the references to values. For the member function dumpPolylineSet I could use a const reference. https://github.com/berndhahnebach/IfcPl ... 6e00274173 But this does not work for the other two member functions.

My C++ knowledge is just so smal... May be one of you guys has an idea how to fix this. Just take the original repo of Fabian Gerold from my branch svn https://github.com/berndhahnebach/IfcPlusPlus/tree/svn
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

FYI, upgraded my repo for IfcPlusPlus on Linux to the up to date repo of Fabian Gerold. Tested on Debian Jessie and Ubuntu 14.04

https://github.com/berndhahnebach/IfcPlusPlus/
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: IFC Viewer ifcplusplus

Post by yorik »

Cool! Thanks for maintaining this updated... Ifc++ is really a very handy tool to have on a linux system...
User avatar
twohot
Posts: 63
Joined: Tue May 17, 2011 10:48 pm
Location: 9ja://coalcity
Contact:

Re: IFC Viewer ifcplusplus

Post by twohot »

Code: Select all

make: *** No rule to make target 'install'.  Stop.
Why?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Viewer ifcplusplus

Post by bernd »

twohot wrote:

Code: Select all

make: *** No rule to make target 'install'.  Stop.
Why?
Did you try to run "make install"? The cmake files do not support to run "make install" and install the viewer. Just run it from the build directory. See https://github.com/berndhahnebach/IfcPl ... /README.md
Post Reply