# angle-normals

> Compute mesh normals using angle weights

Latest version **1.0.0** (published 2015-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install angle-normals
pnpm add angle-normals
yarn add angle-normals
bun add angle-normals
```

## 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 | 2015-11-07 |
| First published | 2015-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | mesh, normal, simplicial, complex, angle, weight, vertex, rendering, graphics |

## Links

- npm: https://www.npmjs.com/package/angle-normals
- Repository: https://github.com/mikolalysenko/angle-normals
- Homepage: https://github.com/mikolalysenko/angle-normals#readme
- Issues: https://github.com/mikolalysenko/angle-normals/issues
- npm.io page: https://npm.io/package/angle-normals

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-11-07

## README

angle-normals
=============
Computes vertex normals for a mesh using angle weights.  This is slower, but produces results which are more robust to the mesh subdivision.

# Install
Angle normals

```
npm i angle-normals
```

# Example

```javascript
var bunny = require('bunny')
var normals = require('angle-normals')(bunny.cells, bunny.positions)

console.log(normals)
```

# API

#### `require('angle-normals')(cells, positions)`
Computes vertex normals from for a mesh.

* `cells` are the cells of the mesh
* `positions` are the positions of the mesh's vertices

**Returns** An array of normals

# License
(c) 2015 Mikola Lysenko. MIT License

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