xeokit-converter
The image contains all tools needed for the conversion of IFC files
to the xkt
format for the xeokit viewer.
- IfcConvert (IfcOpenShell)
- @xeokit/xeokit-metadata
- @xeokit/xeokit-convert
Pipeline
IFC => GLB |
| => XKT + JSON
IFC => JSON |
Usage
docker build -t xeokit-converter .
docker run -it -v ~/data:/data xeokit-converter sh
echo "Converting IFC to GLB"
IfcConvert --use-element-guids /data/model.ifc /data/model.glb
echo "Converting IFC to GLB with fixing missing IfcSpaces"
IfcConvert --use-element-guids /data/model.ifc /data/model-v2.glb --exclude=entities IfcOpeningElement
echo "Extract Metadata JSON from IFC"
xeokit-metadata /data/model.ifc /data/model.json
echo "Convert Binary glTF and Metadata to XKT"
xeokit-convert -s /data/model.glb -m /data/model.json -o /data/model.xkt -l
IfcConvert --use-element-guids /data/model.ifc /data/model.glb
xeokit-metadata /data/model.ifc /data/model.json
xeokit-convert -s /data/model.glb -m /data/model.json -o /data/model.xkt -l
You can find the xkt
and json
file in the /data
folder.
Environment
The IfcConvert
library is available through bimspot/ifcopenshell
.
The xeokit-converter image is based on the bionic dotnet runtime.
Docker b9uild & run
docker build -t xeokit-convert .
docker run -v $(pwd)/data:/data/ -it xeokit-convert xeokit-convert-ifc /data/model.ifc