gl-wireframe

Convert a mesh index for drawing wireframes

OTHER License

Downloads
135
Stars
6
Committers
1

gl-wireframe experimental

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.