Code Monkey home page Code Monkey logo

Comments (13)

gstslxd avatar gstslxd commented on August 10, 2024 1

I have settle this bug.
I add the code below:

else if (geometryType == 3) {
               numParts = stream.readInt();
                objectBounds = stream.readFloatArray(6);

It's OK now. @xeolabs

from bimvie.ws-viewer.

rubendel avatar rubendel commented on August 10, 2024

6643e93

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

Thanks Ruben, I've extracted that out into an example which you can run here and source code for the example is here.

(I'm maintaining this set of bare metal (ie. without Dojo) examples for easy reference.)

The example integrates my Download component, which you can see integrated in the example here.

However, when I run this example, using the server at http://thebimfederationserver.thebimfederation.com and Thomas' name and password, I get a JS exception ('firstUpper' is undefined):

(I'll need to get a name and password from you to use the http://thisisanexperimentalserver.com server you've provided, so in the meantime I'm using the one Thomas gave me.)

screenshot from 2015-08-26 15 34 23

I've concatenated the API into the bimviews.js binary is build, and the so the exception originates here.

from bimvie.ws-viewer.

rubendel avatar rubendel commented on August 10, 2024

firstUpper is defined to be a method of String in String.js, I can't test the example as I don't have Thomas his credentials.

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

Ah ok - maybe I'd better ensure String.js is integrated in the build then,
I'll do that later tonight

On Wed, Aug 26, 2015 at 3:54 PM, Ruben de Laat [email protected]
wrote:

firstUpper is defined to be a method of String in String.js, I can't test
the example as I don't have Thomas his credentials.


Reply to this email directly or view it on GitHub
#3 (comment)
.

Lindsay Kay
http://xeolabs.com

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

OK I've integrated string.js into the build, and now getting this error after loading the (empty) model:

screenshot from 2015-08-26 17 26 18

You should be OK to run it now..

from bimvie.ws-viewer.

rubendel avatar rubendel commented on August 10, 2024

https://github.com/opensourceBIM/bimvie.ws-viewer/blob/master/index.html#L97 is being passed "null" as the second argument, you can replace it with something like this:

function Notifier() {
            var othis = this;

            this.setSelector = function(selector) {
            };

            this.clear = function() {
            };

            this.resetStatus = function(){
            };

            this.resetStatusQuick = function(){
            };

            this.setSuccess = function(status, timeToShow) {
                console.log("success", status);
            };

            this.setInfo = function(info, timeToShow) {
                console.log("info", info);
            };

            this.setError = function(error) {
                console.log("error", error);
            };
        }

        notifier = new Notifier();

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

I'm back on this issue -

I've reworked http://opensourcebim.github.io/bimvie.ws-viewer/examples/api_Download_model.html (runnable here) so that the binary loading code is "bare metal", without using my Download component.

That's just so I can get this working as a reference, then I'll try to reintegrate that component.

Problem I'm having now is that execution never makes it to this point.

@rubendel I'm not sure where I'm going wrong here - would you be able to debug that for me, just so that execution makes it to here, where I'm getting a packet of binary data?

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

Execution makes it as far as line 196, then state.title equals "User has insufficient rights to download revisions from this project", so I guess Thomas' account needs those permissions.

Are you able to set those permissions up in the server? Or maybe set up another account with those permissions?

(I'm using the same credentials from Thomas that I emailed to you on Aug 26).

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

Got one more issue - see screenshot:

screenshot from 2015-09-08 14 33 42

from bimvie.ws-viewer.

rubendel avatar rubendel commented on August 10, 2024

I added this line to show you that you are passing null as the first argument to setBinaryDataListener.

https://github.com/opensourceBIM/bimvie.ws-viewer/blob/master/examples/api_Download_model.html#L210

from bimvie.ws-viewer.

xeolabs avatar xeolabs commented on August 10, 2024

Cool - seems to be downloading data now.

from bimvie.ws-viewer.

gstslxd avatar gstslxd commented on August 10, 2024

I have test this example with bimserver-1.4.0-FINAL-2015-10-25 deployed on my computer win7 64-bit . I find a issue when testing the architect.ifc as shown below in the Chrome:

1089de4c-031e-11e6-9005-39a78d5b26a8

I think this issue is caused when creating the geometry of which geometryType=3
indices = stream.readIntArray(numIndices);
How can I settle this problems? thanks.

from bimvie.ws-viewer.

Related Issues (11)

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.