New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

angle-normals

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angle-normals

Compute mesh normals using angle weights

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
356
-18.35%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

mesh

FAQs

Package last updated on 07 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts