Giter Site home page Giter Site logo

bimsurfer2's People

Contributors

aothms avatar atibaut avatar bastienmenis avatar berlotti avatar bigbim avatar bpimost avatar bryandenijs avatar camel1cz avatar cedeon avatar dlabz avatar ghesselink avatar johltn avatar konomith avatar rehno-lindeque avatar rmcnulty avatar rubendel avatar stegh avatar tk120404 avatar xeolabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bimsurfer2's Issues

Tried to run the BIMsurfer2 under IIS server

Interesting, the following files do not exist on the file folder:
../bimsurfer/src/threeViewer/three.js
etc.

<script type="text/javascript" src="../bimsurfer/src/threeViewer/three.js"></script>
<script type="text/javascript" src="../bimsurfer/src/threeViewer/OrbitControls.js"></script>
<script type="text/javascript" src="../bimsurfer/src/threeViewer/GLTFLoader.js"></script>

So I am not sure if anyone were able to run the gltf.html file on a web browser.
http://localhost/examples/gltf.html

I got can not find three.js file javascript error. Now even after I copied the three.js and other js files from ../bimsurfer/lib folder over to ../bimsurfer/src/threeViewer folder, I still get "Three not defined"
error.

OrbitControls.js:16 Uncaught ReferenceError: THREE is not defined
at OrbitControls.js:16
(anonymous) @ OrbitControls.js:16
GLTFLoader.js:9 Uncaught ReferenceError: THREE is not defined
at GLTFLoader.js:9

Implement value editing

Hallo,
I work on a project in witch wie extract data from an Ifc file to convert it for our Customer. But we would like to implement a solution to not only extract this data but also to manipulate it in the preview.

What are you're thought on this is. Would it fit in to this project?

Problems with BimServer based demo.

I just found another error which I don't know how to deal with:
What I want to do:
My aim is to use the BIMSurfer2 inside an web application to visualize IFC Models from BimServer and show specific elements of the IFC to users. I decided for BIMSurfer2 because of the API, which is not provided in the current release of BIMSurfer3 (which is placed here, right?: https://github.com/opensourceBIM/BIMsurfer).

My Setup:
latest BimServer release: 1.5.182
latest BimSurfer2 release: bimsurfer-0.0.64

I integrated the inbuild Schependomlaan buidling and the FZK-Haus IFC4 (http://www.ifcwiki.org/index.php?title=KIT_IFC_Examples). In the BimVie.ws plugin I can load both buildings without errors. When using BimSurfer2 (after dealing with the issues I showed in my other issue) I get the following errors.

For Schependomlaan I get 44 times the error:

uncaught (in promise) ReferenceError: exec_statement is not defined
    at bimserver.html?address=http%3A%2F%2Flocalhost%3A8082%2F&token=fbfbfbe998a305b0c3e9f9d396575fd593beba3ca9ca9573a54ae22973ec7a9ebb84baced4ecbc40b9fa263b62ce35e1&poid=196609:161
    at Array.forEach (<anonymous>)
    at bimserver.html?address=http%3A%2F%2Flocalhost%3A8082%2F&token=fbfbfbe998a305b0c3e9f9d396575fd593beba3ca9ca9573a54ae22973ec7a9ebb84baced4ecbc40b9fa263b62ce35e1&poid=196609:142

raised by the code statement
exec_statement = "eval(document.getElementById(\"code"+i+"\").value)"

For FZK-Haus:
model.js:752 Class "IfcRelDecomposes" does not have the field "RelatedObjects"

The gltf models are showing without problems.
Do you have any ideas where these errors are coming from or how I can deal with them?
Thanks in advance.

Correct gltf conversion

We are running into an issue when converting our .ifc files into gltf. We used the following python script

IFCCONVERT = Path('./IfcConvert')
COLLADA = Path('./collada2gltf/COLLADA2GLTF-v2.1.5-windows-Release-x64/COLLADA2GLTF-bin')
GLTFPIPELINE = Path('./gltf-pipeline/bin/gltf-pipeline.js')
os.chdir(r'C:\Entwicklung\test\ifc2gltf')

def convert(ifc_file):
    name = Path(ifc_file).stem
    # for some reason gltf file needs double .gltf ending to be read by bimSurfer
    cmd_convert0 = '{} --use-element-guids {path} {name}.xml'.format(IFCCONVERT, path=ifc_file, name=name)
    cmd_convert1 = '{} --use-element-guids {path} {name}.dae'.format(IFCCONVERT, path=ifc_file, name=name)
    cmd_convert2 = "{} -i {name}.dae -o {name}.gltf.gltf -v '1.0'".format(COLLADA, name=name)  #  -v '1.0'
    for cmd in (cmd_convert0, cmd_convert1, cmd_convert2):
        print(cmd)
        p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        for line in p.stdout.readlines():
            if line:
                print(line.replace(b'\x00', b''))  # DIRTY!
        retval = p.wait()
        print(retval)

which works fine but when trying to load the .gltf with bimsurfer the browser returns:

image

IfcConvert: 0.6.0 (Windows 64 bit)
Collada2Gltf: v.2.1.5

Are there any flags we have to set when converting to gltf? We tried gltf v1.0 and gltf v2.0

TypeError: viewer.viewFit is not a function

Thanks for this work on BimSurferV2.

I load my model with xml and glb files (generated by IfcConvert).

It works fine but when I select an object, the viewFit function does not exist (in threeViewer):

TypeError: viewer.viewFit is not a function

Thanks in advance.

JPLS

Uncaught ReferenceError: BimServerClient is not defined

When trying to load data from a bimserver via your index.html example I get the javascript error:

index.html:27 Uncaught ReferenceError: BimServerClient is not defined
    at loadFromBimserver (index.html:27)
    at HTMLButtonElement.loadProjectsBtn.onclick (index.html:140)

Due to line 27 where
var client = new BimServerClient(address);
is assigned and the BimServerClient is not declared. I tried to find the defintion of the BimServerClient but didn't fiend anything. Could you point me to the right files? Thanks in advance!
I'm using your latest commit 4 days ago: 3a0a6c9

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.