Convert a flat array into a simplicial-complex-style indexed mesh, without optimisation.
OTHER License
Convert a flat array into a simplicial-complex-style indexed mesh, without optimisation.
Useful for interoperability with other modules, and can also be used in combination with unindex-mesh to force hard edges.
Given a flat array of vertices, expand into an indexed mesh with the following properties:
positions
: the vertices in the mesh.cells
: the faces in the mesh, with each element being an array of threeMIT. See LICENSE.md for details.