# mesh-reindex

> Convert a flat array into a simplicial-complex-style indexed mesh, without optimisation.

Latest version **1.0.0** (published 2014-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install mesh-reindex
pnpm add mesh-reindex
yarn add mesh-reindex
bun add mesh-reindex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-07-09 |
| First published | 2014-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | mesh, reindex, 3d, gl, graph, index, simplicial, complex |

## Links

- npm: https://www.npmjs.com/package/mesh-reindex
- Repository: https://github.com/hughsk/mesh-reindex
- Issues: https://github.com/hughsk/mesh-reindex/issues
- npm.io page: https://npm.io/package/mesh-reindex

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-07-09

## README

# mesh-reindex [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

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](http://github.com/hughsk/unindex-mesh)
to force hard edges.

## Usage

[![NPM](https://nodei.co/npm/mesh-reindex.png)](https://nodei.co/npm/mesh-reindex/)

### mesh = reindex(array)

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 three
  indices for each point in a triangle.

## See Also

* [unindex-mesh](http://github.com/hughsk/unindex-mesh/)
* [simplicial-complex](http://github.com/mikolalysenko/simplicial-complex/)

## License

MIT. See [LICENSE.md](http://github.com/hughsk/mesh-reindex/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/mesh-reindex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
