# bitmap-triangulate

> Triangulates a bitmap image

Latest version **0.0.0** (published 2014-03-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2014-03-04 |
| First published | 2014-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | bitmap, image, triangulate, voxel, mesh |

## Links

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

## Dependencies (2)

- [robust-orientation](https://npm.io/package/robust-orientation.md) ^1.0.0
- [binary-search-bounds](https://npm.io/package/binary-search-bounds.md) ^0.3.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2014-03-04

## README

bitmap-triangulate
==================
Triangulates a 2D bitmap image.

# Example

```javascript
var pack = require("ndarray-pack")
var bitmap = pack([
  [1, 1, 1, 1],
  [1, 0, 1, 1],
  [1, 1, 0, 1],
  [1, 1, 1, 0]
])

var mesh = require("bitmap-triangulate")(bitmap)
```

# Install

```
npm install bitmap-triangulate
```

# API

### `require("bitmap-triangulate")(bitmap)`
Triangulates a 2D bitmap

* `bitmap` is a 2D ndarray encoding an image

**Returns** A simplicial complex with two properties:

* `cells` which are the faces of the triangulation
* `positions` which are the vertices

# Credits
(c) 2014 Mikola Lysenko. MIT License

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