Skip to content

A Docker image for converting IFC files to be displayed in the xeokit viewer.

License

Notifications You must be signed in to change notification settings

bimspot/xeokit-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

xeokit-converter

The image contains all tools needed for the conversion of IFC files to the xkt format for the xeokit viewer.

  • IfcConvert (IfcOpenShell)
  • COLLADA2GLTF
  • xeokit-gltf-to-xkt
  • xeokit-metadata

Usage

$ docker pull bimspot/xeokit-converter

See all available tags on docker hub.

Using bimspot/xeokit-converter as a base image, all converter tools are available in the PATH.

echo "Converting IFC to DAE"
IfcConvert -v -y --use-element-guids scene.ifc scene.dae

echo "Converting DAE to glTF"
COLLADA2GLTF -v -i scene.dae -o scene.gltf

echo "Converting gltf to xkt"
gltf2xkt -s scene.gltf -o scene.xkt

echo "Creating metadata json"
xeokit-metadata scene.ifc scene.json

Environment

The IfcConvert library is available through bimspot/ifcopenshell. The xeokit-converter image is based on the bionic dotnet runtime.

Distribution

The image is build locally and pushed to Docker hub with your own credentials. Semver applies.

~ docker build -t bimspot/xeokit-converter:1.3.x .
~ docker push bimspot/xeokit-converter:1.3.x