gl-wireframe
v1.0.1
Published
Convert a mesh index for drawing wireframes
Downloads
255
Maintainers
Readme
gl-wireframe
Convert a mesh index for drawing wireframes. A useful alternative to shader-based wireframe rendering for certain cases.
Usage
cells = wireframe(cells)
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.
See Also
License
MIT. See LICENSE.md for details.