spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.18k stars 380 forks source link

Examples do not work #154

Open anuragsr opened 2 years ago

anuragsr commented 2 years ago

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

anuragsr commented 2 years ago

The Birds example seems to work

microdee commented 2 years ago

The Birds example seems to work

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

savejeff commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

ActuallyHappening commented 1 year ago

Still doesn't work, exact error as above

POKEZHANG commented 1 year ago

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