Examples do not work

#154 · open · 7 comments

View on GitHub ↗

anuragsr

The links given for examples do not work.. just a blank screen appears with the page title and GUI if applicable

Comments

anuragsr

The [Birds](http://spite.github.io/THREE.MeshLine/demo/birds.html) example seems to work

microdee

> The [Birds](http://spite.github.io/THREE.MeshLine/demo/birds.html) example seems to work but the lines are not there, as on the screenshot either

savejeff

examples still do not work. console gives error: ``` Uncaught TypeError: g.getAttribute is not a function at MeshLine.setGeometry (THREE.MeshLine.js:81:26) at makeLine (main-graph.js:47:4) at createLines (main-graph.js:76:2) at init (main-graph.js:64:2) at main-graph.js:41:1 ```

002301

modify THREE.MeshLine.js:81 to // this.setPoints(g.getAttribute("position").array, c); if (g instanceof THREE.Geometry) { this.setPoints(g.vertices, c); } else if (g instanceof THREE.BufferGeometry) { this.setPoints(g.getAttribute("position").array, c); } else { this.setPoints(g, c); }

savejeff

Thx. would it be possible to update the Demos/Examples? They currently still do not work

ActuallyHappening

Still doesn't work, exact error as above

POKEZHANG

> modify THREE.MeshLine.js:81 to // this.setPoints(g.getAttribute("position").array, c); if (g instanceof THREE.Geometry) { this.setPoints(g.vertices, c); } else if (g instanceof THREE.BufferGeometry) { this.setPoints(g.getAttribute("position").array, c); } else { this.setPoints(g, c); } ok,it's work