Skip to main content

ifcGears : Open Source IFC Library/Framework & Viewer

ifcGears (http://www.ifcgears.com)

This is a C++ Open Source library, providing a framework to generate IFC reader/writer classes from the Express files.

In addition, there is an IFC Viewer program, using OpenSceneGraph or OSG (http://openscenegraph.org) and Nokia Qt SDK (http://qt.nokia.com).

Compilation Issues

I was able (after some serious struggle) to compile the ifcGears library and the ifcGearsViewer on OSX.
It uses the CMake build system (http://cmake.org) which has support for OSG. But the GUI-version of CMake on OSX does not properly generate all settings, as it seems to miss the environment variables somehow. When generating the XCode project or the Makefiles using cmake from the command line, things run smoother.

Anyway, if you use the graphical CMake, you have to ensure that all libraries are found. I have only used the release-versions.

With the OPT_VIEWER you can optionally enable the generation of the IFC Viewer too, but you need OpenSceneGraph installed properly (which was also a bit of a problem on OSX, but I'll skip that in this post). I used version 3.0.1. In addition, you also need Qt available (qmake etc...). I used version 4.7.

All was compiled for 64-bit (x86_64) for Intel and using Cocoa (native) instead of Carbon (deprecated), but it should be possible to make 32-bit versions for PPC and Intel too.




With all of that into place, I was able to compile the library and the viewer.




The red commands are probably due to the IFC-version used when exporting the model from ArchiCAD. I am not worrying too much here, as I have to test more.

I see no Windows or Doors and some walls are apparently not visible. When trying a single wall with a door and a window, the openings got hidden beneath the closed wall geometry, so more work seems to be required.

Comments

Popular posts from this blog

Improve usage of BIM during early design phases

When I was collecting ideas for a book chapter on BIM (that seemed to never have emerged after that), I collected 10 ideas, which I believe still reflect good recommendations to improve the usage of BIM during the early design phases. These ideas are related to BIM software, but you can apply them in any flavor, as long as you can model with Building Elements, Spaces and have control over representation. Introduction This article gives an overview of several recommendations and tips, to better apply BIM applications and BIM methodologies, in the context of the early design phases. Many of these tips are applicable in any BIM application and they are based on experience gathered from teaching, researching and using BIM software. Sometimes they could help software developers to improve the workflow of their particular BIM implementation. Tip 1 : Gradually increase the amount of information In the early design phases, the architect makes assumptions and lays out the main design in...

PythonOCC : Open Source interactive CAD shell (and how to run it on OSX)

What is PythonOCC? PythonOCC is an Open Source (LGPL) Python-wrapper for OpenCASCADE. So what is OpenCASCADE (OCC)? This is an advanced Open Source (custom license) modeling kernel, comparable to commercial engines, such as ACIS or Parasolid, which are used in quite some commercial CAD programs. When you want to develop CAD software, you could use OCC and write programs in C++. And why using Python? With this wrapper, you can create CAD and geometry scripts in Python, which is an interpreted Object-oriented scripting language. You can write almost "on-the-fly" and seriously reduce the implementation effort, by skipping the compiling-phase. You can even interact with a running program in the Python interpreter. Want to read more about this? The OpenCASCADE official website  (currently Linux and Windows are officially supported) The PythonOCC website/blog  (beware that the core of the actions happen in the development repositories). So far so good. Now the nasty, techn...

Getting BIM data into Unity (Part 8 - Strategies to tackle IFC)

This is part 8 of a series of posts about getting BIM data into Unity. In this post, we’ll discuss IFC as a transfer format towards Unity. As with the previous post, this is not a coding post, although hints and examples are provided. Open BIM and IFC Everybody who ever met me or heard me present on a conference or BIM-lecture will not be surprised to hear that I’m a strong believer in the Industry Foundation Classes (IFC), an open standard, with already two versions published as an ISO standard, being IFC2x2 and IFC4 (but surprisingly not IFC2x3 which is widely used). In the ideal world, this would be the format to use to transfer BIM data into another environment, such as Unity. So what are our options? Looking in the Unity Asset Store Assimp is a library which supports multiple formats, including IFC. https://assetstore.unity.com/packages/tools/modeling/trilib-unity-model-loader-package-91777   I did a few attempts, but alas without any success. It is po...