IFC to GLB Converter icon

IFC to GLB Converter

Convert IFC files to GLB (GLTF Binary) format with mesh and material data

Overview

This node converts IFC (Industry Foundation Classes) files, which are commonly used for building and construction data, into GLB or GLTF 3D model formats. It extracts 3D geometry and material data from IFC files and outputs them as GLB (binary) or GLTF (JSON) files. This is useful for integrating architectural or construction models into 3D visualization workflows, game engines, or web applications that support GLB/GLTF formats.

Use Case Examples

  1. Converting IFC files from an input binary property to GLB format for 3D visualization.
  2. Using IFC data from the main input to generate a GLTF JSON model with specific compression and precision settings.

Properties

Name Meaning
IFC Data Source Specifies where to get the IFC data from, either from the input data or a binary property.
Property Name Name of the binary property containing IFC data, used only if 'Binary Property' is selected as the data source.
Output Options Options to customize the output including geometry inclusion, materials inclusion, compression method, geometric precision, and output format.

Output

Binary

The node outputs the converted 3D model as binary data, either in GLB or GLTF format, suitable for saving or further processing.

JSON

  • success - Indicates if the conversion was successful.
  • data - Base64 encoded string of the converted 3D model data.
  • meshCount - Number of meshes extracted from the IFC file.
  • vertexCount - Total number of vertices in the extracted meshes.
  • fileSize - Size of the output file in bytes.
  • materialCount - Number of materials included in the output.
  • metadata - Additional metadata extracted from the IFC file.
  • mimeType - MIME type of the output file, depending on the selected format.
  • fileName - Name of the output file with appropriate extension.

Dependencies

  • Requires Three.js library for 3D model processing.
  • Uses custom IFC mesh extraction and GLB exporting utilities.
  • Needs access to binary IFC data, either from input or a specified binary property.

Troubleshooting

  • Error 'Binary property not found' occurs if the specified binary property does not exist in the input. Verify the property name and input data.
  • Error 'No binary data found in input' indicates missing binary data in the input when 'Input Data' source is selected. Ensure the preceding node outputs a file.
  • Error 'The retrieved IFC data is empty' means the IFC file is empty or corrupted. Check the source file integrity.
  • Error 'No valid meshes found' means the IFC file does not contain extractable 3D geometry. Confirm the IFC file contains 3D model data.
  • Conversion errors may occur due to unsupported IFC file formats or corrupted data. Review error messages and logs for details.

Links

  • Three.js - JavaScript 3D library used for processing and converting 3D models.
  • Industry Foundation Classes (IFC) - Standard data model for building and construction industry data.
  • glTF Format - Standard file format for 3D scenes and models used in this node's output.

Discussion