# triangulate-hypercube

> Triangulates a hypercube into simplices

Latest version **1.0.1** (published 2014-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install triangulate-hypercube
pnpm add triangulate-hypercube
yarn add triangulate-hypercube
bun add triangulate-hypercube
```

## 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.1 |
| Published | 2014-09-18 |
| First published | 2014-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | triangulate, simplexity, cube, hypercube, decomposition |

## Links

- npm: https://www.npmjs.com/package/triangulate-hypercube
- Repository: https://github.com/mikolalysenko/triangulate-hypercube
- Issues: https://github.com/mikolalysenko/triangulate-hypercube/issues
- npm.io page: https://npm.io/package/triangulate-hypercube

## Dependencies (3)

- [gamma](https://npm.io/package/gamma.md) ^0.1.0
- [permutation-rank](https://npm.io/package/permutation-rank.md) ^1.0.0
- [permutation-parity](https://npm.io/package/permutation-parity.md) ^1.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-09-18
- 1.0.0 — 2014-05-07
- 0.0.0 — 2014-04-08

## README

triangulate-hypercube
=====================
Triangulates an n-dimensional hypercube into a collection of simplices.

**Note:** In high dimensions, this triangulation is not very efficient. Pull requests welcome.

# Example

```javascript
var triangulateCube = require("triangulate-hypercube")

console.log(triangulateCube(2))
```

Output:

```javascript
[ [ 3, 2, 0 ], [ 0, 1, 3 ] ]
```

# Install

```
npm install triangulate-hypercube
```

# API

#### `require("triangulate-hypercube")(dimension)`
Computes a decomposition of an n-dimensional hypercube into simplices using a naive permutation based algorithm.

* `dimension` is an integer representing the dimension of the hypercube to triangulate

**Returns** A list of `n` dimensional simplices which subdivide the cube.

# Credits
(c) 2014 Mikola Lysenko. MIT License

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