Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/angle-normals
Compute mesh normals using angle weights
https://github.com/mikolalysenko/angle-normals
Last synced: about 2 months ago
JSON representation
Compute mesh normals using angle weights
- Host: GitHub
- URL: https://github.com/mikolalysenko/angle-normals
- Owner: mikolalysenko
- License: mit
- Created: 2015-11-07T22:59:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-08T06:13:09.000Z (over 3 years ago)
- Last Synced: 2024-10-20T14:27:23.367Z (2 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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