THREE.MeshLine icon indicating copy to clipboard operation
THREE.MeshLine copied to clipboard

Examples do not work

Open anuragsr opened this issue 2 years ago • 7 comments

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

anuragsr avatar Jun 19 '22 10:06 anuragsr

The Birds example seems to work

anuragsr avatar Jun 19 '22 14:06 anuragsr

The Birds example seems to work

but the lines are not there, as on the screenshot either

microdee avatar Jul 25 '22 12:07 microdee

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

savejeff avatar Oct 28 '22 12:10 savejeff

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); }

002301 avatar Nov 02 '22 10:11 002301

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

savejeff avatar Nov 02 '22 12:11 savejeff

Still doesn't work, exact error as above

ActuallyHappening avatar Dec 13 '22 11:12 ActuallyHappening

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

POKEZHANG avatar Nov 01 '23 06:11 POKEZHANG