Comments (13)
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.
from bimvie.ws-viewer.
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.)
I've concatenated the API into the bimviews.js binary is build, and the so the exception originates here.
from bimvie.ws-viewer.
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.
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.
OK I've integrated string.js into the build, and now getting this error after loading the (empty) model:
You should be OK to run it now..
from bimvie.ws-viewer.
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.
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.
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.
Got one more issue - see screenshot:
from bimvie.ws-viewer.
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.
Cool - seems to be downloading data now.
from bimvie.ws-viewer.
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:
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)
- Transparent canvas
- Auto-orthogonalise 'up' vector on Camera
- Wireframe viewing mode
- Material layers
- Multiple views of same geometry
- Screen capture component HOT 1
- Create gesture control with myo
- qualification on 64 bit linux / opera
- Colors/Reuse/Selection HOT 3
- Automatic aspect ratio for canvas resize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bimvie.ws-viewer.