Giter Site home page Giter Site logo

r-rijnbeek / ifc_webviewer Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 6.47 MB

A webViewer application that visualize IFC content of a file on web browser. Tested with IFC IFC2X3

License: MIT License

Python 57.96% HTML 7.37% CSS 8.58% Batchfile 1.60% Dockerfile 1.37% Shell 0.68% JavaScript 22.44%
python flask flask-application ifc ifcopenshell ifc2x3 webgl webpage bim bim-applications

ifc_webviewer's Introduction

IFC_WebViewer

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)

prerequisites

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

Instalation protocol

  1. Clone the github repository.
$ git clone https://github.com/R-Rijnbeek/IFC_WebViewer.git
  1. Enter the project folder.
$ cd IFC_WebViewer
  1. Build the virtual environment on the repository by running:
$ build.bat
  1. 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/

Notes to know:

  1. The dependencies to use all features of this repository are writed on the environmet.yml file: OCC, ifcopenshell and Flask

  2. 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
    
  3. This repository is tested with windows 10 and anaconda version 4.11.0.

Improvments

  1. Find alternative to store IFC instances and not having problems when app is deployed with more than on worker
  2. Include multiprocessing to make the process rendering process faster on server site.
  3. Put an render process bar on client side when ifc file is processed on server site.
  4. Remove all tree.js instances when reloading an new object.
  5. Will be fine to include and opacity slider GUI on rendering window.
  6. Deploy it with a gunicorn/wsgi solution
  7. .....

ifc_webviewer's People

Contributors

r-rijnbeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ifc_webviewer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.