A webViewer application that visualize IFC content of a file on web browser. Tested with IFC2X3
- EXAMPLE: Visit web (it is a free Dynos, so sometimes it take some time to initialize the Heroku instance)
Has anaconda installed on windows. And configured you system variables ($path) of anaconda on windows:
- C:\ProgramData\Anaconda3
- C:\ProgramData\Anaconda3\Scripts
- C:\ProgramData\Anaconda3\Library\bin
- Clone the github repository.
$ git clone https://github.com/R-Rijnbeek/IFC_WebViewer.git
- Enter the project folder.
$ cd IFC_WebViewer
- Build the virtual environment on the repository by running:
$ build.bat
- To activate the environmet and run the scripts:
$ activate ./env
$ python entrypoint.py
If it works. Than you can open your webbrowser and visualize the IFC content on: http://localhost:8080/
-
The dependencies to use all features of this repository are writed on the environmet.yml file: OCC, ifcopenshell and Flask
-
If you will only use the content of this repository. On a other project than you need to create an virtual environment that include "ifcopenshell", "OCC" and "flask" and "python=3.9"
- ANACONDA:
conda install -c conda-forge pythonocc-core ifcopenshell conda install -c anaconda flask
-
This repository is tested with windows 10 and anaconda version 4.11.0.
- Find alternative to store IFC instances and not having problems when app is deployed with more than on worker
- Include multiprocessing to make the process rendering process faster on server site.
- Put an render process bar on client side when ifc file is processed on server site.
- Remove all tree.js instances when reloading an new object.
- Will be fine to include and opacity slider GUI on rendering window.
- Deploy it with a gunicorn/wsgi solution
- .....