IFC is a standard 3D model format used in architecture and construction. As a developer, you can:
-
Load and display IFC models using Castle Game Engine TCastleScene class. For this, follow the general instructions for loading 3D models in the engine, like manual about viewport with scenes.
-
Or you can use API from the CastleIfc unit for IFC-specific operations.
This is what this example demonstrates.
It allows to access (read and write) all the IFC information and operate on it using Pascal classes that directly correspond to the IFC concepts. For example, there's a Pascal class TIfcWall that corresponds to the IFC specification definition of a wall. This example shows how to add a wall to an IFC model, display the change, and save the result to an IFC file.
The idea is to demonstrate that you can make a a full-featured, IFC-native, 3D editor or analysis tool using Castle Game Engine.
The documentation about IFC provides more information about the IFC format and how to use it in Castle Game Engine.
Using Castle Game Engine.
Compile by:
-
CGE editor. Just use menu items "Compile" or "Compile And Run".
-
Or use CGE command-line build tool. Run
castle-engine compilein this directory. -
Or use Lazarus. Open in Lazarus
ifc_standalone.lpifile and compile / run from Lazarus. Make sure to first register CGE Lazarus packages. -
Or use Delphi. Open in Delphi
ifc_standalone.dprojfile and compile / run from Delphi. See CGE and Delphi documentation for details.
