spite / THREE.MeshLine

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

Feature request: Line segments #93

Open inear opened 4 years ago

inear commented 4 years ago

Would it be possible to implement lines with disconnected segments? I read this article about Instanced lines doing this. I wonder if we could reduce drawcalls for example when drawing complex svg shapes. I guess it have to move away from triangle-strips. Maybe it's better with a totally separate solution for multiple line segments, but anyway, it would be awesome to have an alternative in three.js

Vanilagy commented 3 years ago

How has nobody replied to this yet? This repo has 1.4k stars!

spite commented 3 years ago

I don't know. May be because stars can't type, who knows. I don't see how having a number of stars changes the fact that the repo has one and a half maintainers.

Anyway, here's a reply: yes, it would be possible, anything is possible. Is someone going to do it for you? Probably not. But feel free to build on it and submit a PR. Alternatively, you could also use the dashArray to simulate line segments.