All Projects → IFCjs → web-ifc

IFCjs / web-ifc

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

Programming Languages

typescript
32286 projects
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
javascript
184084 projects - #8 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: ✭ 229 (-27.07%)
Mutual labels:  emscripten, ifc
webgl
http://gam0022.net/webgl/
Stars: ✭ 43 (-86.31%)
Mutual labels:  emscripten
Mediainfo.js
MediaInfo ported to the web using emscripten
Stars: ✭ 217 (-30.89%)
Mutual labels:  emscripten
bazel-emscripten
C++ to WASM or JS using Bazel and Emscripten
Stars: ✭ 40 (-87.26%)
Mutual labels:  emscripten
Microwindows
The Nano-X Window System
Stars: ✭ 230 (-26.75%)
Mutual labels:  emscripten
physx-js
PhysX for JavaScript
Stars: ✭ 80 (-74.52%)
Mutual labels:  emscripten
Supermariowar
A fan-made multiplayer Super Mario Bros. style deathmatch game
Stars: ✭ 200 (-36.31%)
Mutual labels:  emscripten
wasm-raytracer
a performance comparison of a simple raytracer in JavaScript, asm.js, WebAssembly, and GLSL
Stars: ✭ 158 (-49.68%)
Mutual labels:  emscripten
magnum-extras
Extras for the Magnum C++11/C++14 graphics engine
Stars: ✭ 26 (-91.72%)
Mutual labels:  emscripten
perl.js
emscripten build settings for perl
Stars: ✭ 31 (-90.13%)
Mutual labels:  emscripten
helloworld-sdl2-opengl-emscripten
Basic program that uses SDL2+OpenGL, compiling both locally and via emscripten
Stars: ✭ 71 (-77.39%)
Mutual labels:  emscripten
Yew
Yew is a modern Rust framework for creating multi-threaded front-end web apps with WebAssembly.
Stars: ✭ 18,243 (+5709.87%)
Mutual labels:  emscripten
node-seal
Homomorphic Encryption for TypeScript or JavaScript - Microsoft SEAL
Stars: ✭ 139 (-55.73%)
Mutual labels:  emscripten
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+746.18%)
Mutual labels:  emscripten
rogue.js
JavaScript porting of original Rogue source code using Emscripten
Stars: ✭ 33 (-89.49%)
Mutual labels:  emscripten
Engine
A basic cross-platform 3D game engine
Stars: ✭ 208 (-33.76%)
Mutual labels:  emscripten
eigen-js
⚡ Eigen-js is a port of the Eigen C++ linear algebra library
Stars: ✭ 78 (-75.16%)
Mutual labels:  emscripten
python-mvdxml
A mvdXML checker and w3c SPARQL converter, as an IfcOpenShell submodule or stand-alone.
Stars: ✭ 28 (-91.08%)
Mutual labels:  ifc
Header-Only-GL-Helpers
A collection of header files that can ease OpenGL programming
Stars: ✭ 25 (-92.04%)
Mutual labels:  emscripten
bergamot-translator
Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
Stars: ✭ 181 (-42.36%)
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.

If you wish to build the WASM with debugging enabled you can run npm run build-debug. This will enable you to inspect debugging information better when running web-ifc.

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].