Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Line segments #93

Open
inear opened this issue Dec 27, 2019 · 2 comments
Open

Feature request: Line segments #93

inear opened this issue Dec 27, 2019 · 2 comments

Comments

@inear
Copy link

inear commented Dec 27, 2019

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
Copy link

Vanilagy commented Jan 6, 2021

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

@spite
Copy link
Owner

spite commented Jan 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants