Edges geometry and line segments - threejs demo

Аватар автора
JavaScript для профессионалов
The edges Geometry is a way to go about creating a geometry from another geometry that will work well with line segments in threejs. The resulting geometry will also work with Points and anything else where a position attribute alone will be good enough. Sense there is no normal or uv attributes for this geometry it is not a good choice for mesh objects but that is not generally what it is there for. The main thing about this kind of geometry is that it will result in a look that I do like much better than a mesh object with the material set in wire frame mode. However one big draw back of this is that when using the line or line segments class in place of mesh I am limited to line materials, and also setting the width of lines will not work with some platforms. THE POST: THREEJS DOCS: GITHUB:

0/0


0/0

0/0

0/0