Convert a mesh index for drawing wireframes
OTHER License
Convert a mesh index for drawing wireframes. A useful alternative to shader-based wireframe rendering for certain cases.
Takes the cells
of a simplicial complex (in other words, a mesh's faces) and
returns a copy suitable for drawing wireframes. Now when it comes to drawing the
mesh, simply use gl.LINES
in place of gl.TRIANGLES
.
See example.js for a full example.
MIT. See LICENSE.md for details.