1.0.1 • Published 10 years ago

gl-wireframe v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

gl-wireframe experimental

Convert a mesh index for drawing wireframes. A useful alternative to shader-based wireframe rendering for certain cases.

gl-wireframe

Usage

NPM

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.