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

Geometry.fromBufferGeometry ignores index, LineDashedMaterial does not work with BufferGeometry #8494

Closed
makc opened this issue Mar 31, 2016 · 3 comments
Labels

Comments

@makc
Copy link
Contributor

makc commented Mar 31, 2016

so I figured LineDashedMaterial does not work with BufferGeometry, so I would convert it via Geometry.fromBufferGeometry, but no cigar:

screen shot 2016-03-31 at 20 25 06

fiddle: https://jsfiddle.net/bqovLnes/

@makc
Copy link
Contributor Author

makc commented Mar 31, 2016

ok, it seems it just ignores index

@makc
Copy link
Contributor Author

makc commented Mar 31, 2016

workaround fiddle: https://jsfiddle.net/bqovLnes/1/

@makc makc changed the title Geometry.fromBufferGeometry does not play well with LineSegments Geometry.fromBufferGeometry ignores index, LineDashedMaterial does not work with BufferGeometry Mar 31, 2016
@Mugen87 Mugen87 added the Bug label Feb 7, 2018
@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 12, 2018

You can now do this in your code:

line.computeLineDistances();

This works with both Geometry and BufferGeometry based line geometries. (Or in other words: LineDashedMaterial works now with BufferGeometry🎉).

@Mugen87 Mugen87 closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants