All Projects → tomvandig → web-ifc

tomvandig / web-ifc

Licence: MPL-2.0 license
Reading and writing IFC files with Javascript, at native speeds.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
CMake
9771 projects
HTML
75241 projects

Projects that are alternatives of or similar to web-ifc

web-ifc
Reading and writing IFC files with Javascript, at native speeds.
Stars: ✭ 314 (+37.12%)
Mutual labels:  emscripten, ifc
WebAssembly-WebGL-2
A simple port of the "Getting started with GLFW3" code to valid code for Emscripten compilation
Stars: ✭ 65 (-71.62%)
Mutual labels:  emscripten
webgl
http://gam0022.net/webgl/
Stars: ✭ 43 (-81.22%)
Mutual labels:  emscripten
vrEmuLcd
Character LCD emulator library (C99 engine, web front-end).
Stars: ✭ 45 (-80.35%)
Mutual labels:  emscripten
bergamot-translator
Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
Stars: ✭ 181 (-20.96%)
Mutual labels:  emscripten
stockfish.js
The strong open source chess engine Stockfish compiled to JavaScript and WebAssembly using Emscripten
Stars: ✭ 140 (-38.86%)
Mutual labels:  emscripten
alia
a declarative UI library for C++
Stars: ✭ 76 (-66.81%)
Mutual labels:  emscripten
rust to js
An example of Rust code that compiles to javascript.
Stars: ✭ 26 (-88.65%)
Mutual labels:  emscripten
noita-tools
A collection of tools for Nolla's Noita that help get insight into seeds and find ones with special constraints.
Stars: ✭ 22 (-90.39%)
Mutual labels:  emscripten
wasm4
Build retro games using WebAssembly for a fantasy console.
Stars: ✭ 711 (+210.48%)
Mutual labels:  emscripten
wrenjs
The Wren Programming Language, in the browser
Stars: ✭ 28 (-87.77%)
Mutual labels:  emscripten
wasm-raytracer
a performance comparison of a simple raytracer in JavaScript, asm.js, WebAssembly, and GLSL
Stars: ✭ 158 (-31%)
Mutual labels:  emscripten
gba.ninja
A port of visualboyadvance-m to JavaScript and a custom frontend
Stars: ✭ 69 (-69.87%)
Mutual labels:  emscripten
rogue.js
JavaScript porting of original Rogue source code using Emscripten
Stars: ✭ 33 (-85.59%)
Mutual labels:  emscripten
datachannel-wasm
C++ WebRTC Data Channels and WebSockets for WebAssembly in browsers
Stars: ✭ 77 (-66.38%)
Mutual labels:  emscripten
magnum-extras
Extras for the Magnum C++11/C++14 graphics engine
Stars: ✭ 26 (-88.65%)
Mutual labels:  emscripten
em-onscripter
An emscripten port of onscripter-jh
Stars: ✭ 26 (-88.65%)
Mutual labels:  emscripten
gemini-viewer
WebGL BIM Viewer based on xeoKit-sdk, written with TypeScript.
Stars: ✭ 24 (-89.52%)
Mutual labels:  ifc
dcraw.js
Generated JavaScript executable code from dcraw.c
Stars: ✭ 14 (-93.89%)
Mutual labels:  emscripten
AECforWebAssembly
A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
Stars: ✭ 15 (-93.45%)
Mutual labels:  emscripten

ifc.js | documentation | demo | discord | usage examples | npm package | contributing

web-ifc

Build npm opencollective

web-ifc is a javascript library to read and write ifc files, at native speeds. web-ifc is part of the ifc.js project, which aims to lower the threshold for developing open BIM applications.

Status

Although it is quite stable and fast already, web-ifc is in pre-alpha status until ifc support matures. The list of currently supported ifc elements, or level of support for different ifc types, is an undocumented work in progress.

Depending on your models, web-ifc may be quick and correct, or slow and broken, please share any problematic models so I can take a look :)

Install

npm install web-ifc

Quick setup

const WebIFC = require("web-ifc/web-ifc-api.js");

// initialize the API
const ifcApi = new WebIFC.IfcAPI();

// initialize the library
await ifcApi.Init();

// open a model from data
let modelID = ifcApi.OpenModel(/* IFC data as a string or UInt8Array */, /* optional settings object */, );

// the model is now loaded! use modelID to fetch geometry or properties
// checkout examples/usage for some details on how to read/write IFC

// close the model, all memory is freed
ifcApi.CloseModel(modelID);

See examples for more details on how to use web-ifc.

Building WASM module

Setting up emscripten

The WASM library is built through emscripten, please see the emscripten installation guide for information on how to set up emscripten. Afterwards emsdk_env needs to be in your path.

WASM library

Run npm install to install all dependencies.

Run npm run setup-env whenever you open a new terminal, this will set up the required emscripten environment variables for you to compile code.

Run npm run build-release-all to build a release version of the wasm binary and the accompanying web-ifc api. It will be placed in ./dist.

Run npm run dev to launch a development server with a basic ifc file viewer.

Stand alone C++

Although the primary focus of the library is to be used through WebAssembly in the browser/nodejs, the project can be used stand-alone as a c++ library or executable. See here for a simple entry point to get started.

Contributing

Want to help out? Great!

Please checkout our contribution suggestsions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].