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

Feature request: Line segments

Open inear opened this issue 4 years ago • 2 comments

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

inear avatar Dec 27 '19 09:12 inear

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

Vanilagy avatar Jan 06 '21 17:01 Vanilagy

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.

spite avatar Jan 06 '21 17:01 spite