# web-ifc-babylon

> A Babylon.js Loader for IFC files

Latest version **0.2.2** (published 2023-06-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install web-ifc-babylon
pnpm add web-ifc-babylon
yarn add web-ifc-babylon
bun add web-ifc-babylon
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2023-06-20 |
| First published | 2023-05-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 179.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | wolfboyyang |
| Keywords | bim, ifc, babylonjs |

## Links

- npm: https://www.npmjs.com/package/web-ifc-babylon
- Repository: https://github.com/wolfboyyang/dt-bim-xr
- Homepage: https://github.com/wolfboyyang/dt-bim-xr#readme
- Issues: https://github.com/wolfboyyang/dt-bim-xr/issues
- npm.io page: https://npm.io/package/web-ifc-babylon

## Dependencies (1)

- [web-ifc](https://npm.io/package/web-ifc.md) ^0.0.41

## Recent versions

- 0.2.2 (latest) — 2023-06-20
- 0.2.1 — 2023-06-20
- 0.2.0 — 2023-06-14
- 0.1.14 — 2023-05-29
- 0.1.13 — 2023-05-28
- 0.1.12 — 2023-05-28
- 0.1.11 — 2023-05-28
- 0.1.10 — 2023-05-25
- 0.1.9 — 2023-05-24
- 0.1.8 — 2023-05-24
- 0.1.7 — 2023-05-24
- 0.1.6 — 2023-05-24
- 0.1.5 — 2023-05-24
- 0.1.4 — 2023-05-24
- 0.1.3 — 2023-05-23
- … 3 more at https://npm.io/package/web-ifc-babylon/versions

## README

# web-ifc-babylon

This library is the implementation of [web-ifc](https://github.com/IFCjs/web-ifc) for [Babylon.js](https://www.babylonjs.com/) loaders. This allows to load ifc file in babylonjs scene. just as GLTF/GLB files. 

The Geomeotry convertion from web-ifc to babylon mesh function is originally implemented by (Anders Lundgren)[https://github.com/anders-lundgren/web-ifc-babylon] and refatored to (web-ifc-three)[https://github.com/IFCjs/web-ifc-three].

=====================

# Babylon.js Loaders module
=====================

For usage documentation please visit https://doc.babylonjs.com/extensions and choose "loaders".

# Installation instructions

To install using npm :

```
npm i -D web-ifc web-ifc-babylon
```

You also need to cp the wasm file from web-ifc to public folder:

```sh
cp node_modules/web-ifc/web-ifc.wasm public/
```

# How to use

Afterwards it can be imported to your project using:

```js
import "web-ifc-babylon/loaders/IFC";
```

This will extend Babylon's loader plugins to allow the load of ifc files.

Import IFC file just as import .babylon/.glTF/glb file.

```js
await SceneLoader.ImportMeshAsync("", "./", "test.ifc");
```

Check the example at github: https://github.com/wolfboyyang/dt-bim-xr/tree/main/web-ifc-babylon/src/example

For more information you can have a look at our [ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support).

---
_Source: https://npm.io/package/web-ifc-babylon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
