# mesh-mass

> Calculate mass properties of a mesh

Latest version **1.0.0** (published 2017-06-23) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2017-06-23 |
| First published | 2017-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrew Taber |
| Maintainers | ataber |
| Keywords | mesh, mass, area |

## Links

- npm: https://www.npmjs.com/package/mesh-mass
- Repository: https://github.com/ataber/mesh-mass
- Homepage: https://github.com/ataber/mesh-mass#readme
- Issues: https://github.com/ataber/mesh-mass/issues
- npm.io page: https://npm.io/package/mesh-mass

## Dependencies (1)

- [gl-vec3](https://npm.io/package/gl-vec3.md) ^1.0.3

## Recent versions

- 1.0.0 (latest) — 2017-06-23

## README

# mesh-mass

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

Calculates mesh mass and area. Note that the volume does not make sense if the mesh does not represent a solid.

Implementation comes from [this paper](http://chenlab.ece.cornell.edu/Publication/Cha/icip01_Cha.pdf)

## Usage

[![NPM](https://nodei.co/npm/mesh-mass.png)](https://www.npmjs.com/package/mesh-mass)

```javascript
var mass = require("./index");
var bunny = require("bunny");

var massProperties = mass(bunny.cells, bunny.positions);
console.log(massProperties);
```

`require("mesh-mass")(cells, positions)`
----------------------------------------------------
Returns an object with properties `area` and `volume`.

## Contributing

See [stackgl/contributing](https://github.com/stackgl/contributing) for details.

## License

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

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