Open daker opened 1 month ago
Support for the Industry Foundation Classes (IFC) format.
Add a new vtkIFCImporter
vtkResourceLoader .loadScript('https://cdn.jsdelivr.net/npm/web-ifc@0.0.55/web-ifc-api-iife.js') .then(() => { vtkIFCImporter.setIFCAPI(window.WebIFC); importer .setUrl('http://example.com/model.ifc'); importer.onReady(() => { importer.getActors().forEach((actor) => renderer.addActor(actor)); resetCamera(); render(); }); });
vtk.js + web-ifc.js
https://github.com/user-attachments/assets/a85cc323-07be-4d11-9da7-805da2c9b1c7
That would be a great addition indeed !
It might have to be like GLTF: split between a reader and an importer.
Motivation
Support for the Industry Foundation Classes (IFC) format.
Detailed Description
Add a new vtkIFCImporter