gl-wireframe

1.0.1 • Public • Published

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.

/gl-wireframe/

    Package Sidebar

    Install

    npm i gl-wireframe

    Weekly Downloads

    14

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • hughsk