Socket
Book a DemoInstallSign in
Socket

loop-subdivide

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

loop-subdivide

Applies on iteration of Loop's subdivision surface algorithm to a triangulated mesh

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

loop-subdivide

Applies an iteration of Loop's algorithm to a triangulated mesh.

Example

var bunny = require('bunny')
var loopSubdiv = require('loop-subdivide')

var smoothBunny = loopSubdiv(bunny.cells, bunny.positions)

Usage

var result = require('loop-subdivide')(cells, positions)

Applies one iteration of Loop subdivision to the mesh

  • cells are the cells of the mesh
  • positions are the locations of the vertices of the mesh

Returns A new subdivide mesh

License

(c) 2015 Mikola Lysenko. MIT License

Keywords

loop

FAQs

Package last updated on 12 Mar 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