Viktor Kovacs
Viktor Kovacs
You can comment out this line and rebuild the package to try out IFC importer: https://github.com/kovacsv/assimpjs/blob/d626c429a46689880b9cccae97e9b0a11d472ada/CMakeLists.txt#L40 I don't have any information about the quality of it for step files, but...
Maybe my memory failed me, I remembered the change as dramatic. 🙂
Hey, assimpjs is just an interface for [assimp](https://github.com/assimp/assimp), I think this question is better to asked there.
I've added the possibility to export to glb in release 0.0.6. Check out the demos, and replace `assimpjson` with `glb2`.
I don't know if it's still relevant, but you should use `glb2` instead of `gltf2` to get a one-file binary glTF.
The `gltf2` format builds up from multiple files, and the first one happens to be a json. This is why you see it working. The `glb2` format is only one...
For example you can just use the file system api in node.js to write it to a file: ```js let resultFile = result.GetFile (0); fs.writeFileSync ("model.glb", resultFile.GetContent ()); ```
I think that's an error in [assimp](https://github.com/assimp/assimp)'s glb exporter so you should probably report the issue there. Side note: https://3dviewer.net can export to glb, and probably it does a better...
New importers should be added in C++ to the original [assimp](https://github.com/assimp/assimp) repository. assimpjs adds no extra functionality, it's just a compilation of assimp to javascript.
Hey @paireks, The import functionality is kind of in alpha stage. 🙂 Currently it doesn't support importing properties.