Disposing LineSegments

How do I dispose of LineSegments? After doing a scene.remove(lineseg), I try to perform a lineseg.dispose() but this causes an error.

1 Like

You do not dispose any kind of Object3D but materials, textures and geometries. Everything should be explained in this guide:

https://threejs.org/docs/index.html#manual/en/introduction/How-to-dispose-of-objects

1 Like

Thank you for your answer. I think this point is not very clear in the docs.