# edger

> generate hard edges for voxel data

Latest version **1.0.1** (published 2015-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install edger
pnpm add edger
yarn add edger
bun add edger
```

## 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 | 2015-11-26 |
| First published | 2015-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Will Zhou |
| Maintainers | will3 |

## Links

- npm: https://www.npmjs.com/package/edger
- Repository: https://github.com/will3/edger
- Homepage: https://github.com/will3/edger#readme
- Issues: https://github.com/will3/edger/issues
- npm.io page: https://npm.io/package/edger

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) ^3.4.1
- [ndarray](https://npm.io/package/ndarray.md) ^1.0.18

## Recent versions

- 1.0.1 (latest) — 2015-11-26
- 1.0.0 — 2015-11-26

## README

##Edger

Generate hard edges for voxel data

Install  
```npm install edger```

### Usage

```javascript
var edger = require('edger');
var ndarray = require('ndarray');
var voxel = ndarray([], [16, 16, 16]);
voxel.set(0, 0, 0, 0xff0000);
var result = edger(voxel);
console.log(result);

//12 edges for one block
//[ [ [ 0, 0, 0 ], [ 0, 0, 1 ] ],
//[ [ 0, 1, 0 ], [ 0, 1, 1 ] ],
//[ [ 1, 0, 0 ], [ 1, 0, 1 ] ],
//[ [ 1, 1, 0 ], [ 1, 1, 1 ] ],
//[ [ 0, 1, 0 ], [ 1, 1, 0 ] ],
//[ [ 0, 0, 0 ], [ 1, 0, 0 ] ],
//[ [ 0, 0, 1 ], [ 1, 0, 1 ] ],
//[ [ 0, 1, 1 ], [ 1, 1, 1 ] ],
//[ [ 1, 0, 0 ], [ 1, 1, 0 ] ],
//[ [ 1, 0, 1 ], [ 1, 1, 1 ] ],
//[ [ 0, 0, 1 ], [ 0, 1, 1 ] ],
//[ [ 0, 0, 0 ], [ 0, 1, 0 ] ] ]
```

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