Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use BIMSurfer v3 instead of v2 #10

Open
sebphi opened this issue Oct 6, 2021 · 3 comments
Open

How to use BIMSurfer v3 instead of v2 #10

sebphi opened this issue Oct 6, 2021 · 3 comments

Comments

@sebphi
Copy link

sebphi commented Oct 6, 2021

Could you please explain how to use https://github.com/opensourceBIM/BIMsurfer in ifc-pipeline? There are no installation instructions for that repo and it seems the directory structure has changed quite a bit in comparison to v2. I do not know how to change application/Dockerfile accordingly. I guess it is somewhere around

COPY application/bimsurfer/bimsurfer /www/static/bimsurfer

WORKDIR /www/static
# RUN jsdoc -r -d docs bimsurfer
RUN r.js -o baseUrl=. name=App out=App.built.js optimize=none
RUN npx babel App.built.js -o App.built.es2015.js --presets=@babel/preset-env --compact false
RUN uglifyjs --compress -o App.$(cat /version).js -- App.built.es2015.js
RUN npx babel bimsurfer/lib/DRACOLoader.js -o bimsurfer/lib/DRACOLoader.es2015.js --presets=@babel/preset-env --compact false
RUN uglifyjs --compress -o bimsurfer/lib/three.gltf.orbit.draco.min.js -- bimsurfer/lib/three.js bimsurfer/lib/GLTFLoader.js bimsurfer/lib/DRACOLoader.es2015.js bimsurfer/lib/OrbitControls.js
RUN rm -rf node_modules package-lock.json

So far, i have added v3 as a submodule like this:

[submodule "application/bimsurfer3"]
     path = application/bimsurfer3
     url = https://github.com/opensourceBIM/BIMsurfer

Thanks.

@aothms
Copy link
Member

aothms commented Oct 6, 2021

Currently v3 is not yet a drop-in replacement for v2. Since somewhat recently v3 also supports loading glTF. But it's still quite a bit of work to tie everything together. I hope to find the time and budget to work on this, and probably will, but there isn't a date or anything planned yet.

@max482022
Copy link

When is v3 expected to be replaced instead of v2?

@aothms
Copy link
Member

aothms commented Apr 13, 2022

there isn't a date or anything planned yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants