🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@geoblocks/ifc-gltf

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geoblocks/ifc-gltf

Function to import IFC file and convert it to gLTF

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
59
-54.62%
Maintainers
5
Weekly downloads
 
Created
Source

IFC-GlTF

The library

This is a (basic) library to convert IFC files to glTF. See https://technical.buildingsmart.org/standards/ifc/ifc-formats/

It runs entirely on the client side:

  • IFC files are parsed by web-ifc, which uses a C++ library converted as WebAssembly;
  • the models are loaded in Three.js;
  • then exported with the ThreeJS GlTF exporter.

At that point you can load the resulting glTF in any 3D library. You can look at the provided demo to see how to do that with CesiumJS.

Status

This is alpha software.

Alternative

The main alternative is to do the conversion in a backend.

Ideally, it should be possible to directly transform from IFC to glTF, without using ThreeJS. Such library does not exist (to our knowledge).

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts