Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/loop-subdivide
Applies one iteration of Loop's algorithm to a triangular mesh
https://github.com/mikolalysenko/loop-subdivide
Last synced: about 2 months ago
JSON representation
Applies one iteration of Loop's algorithm to a triangular mesh
- Host: GitHub
- URL: https://github.com/mikolalysenko/loop-subdivide
- Owner: mikolalysenko
- License: mit
- Created: 2015-03-12T04:36:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-12T04:54:58.000Z (almost 10 years ago)
- Last Synced: 2024-10-20T14:28:16.934Z (2 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
loop-subdivide
==============
Applies an iteration of [Loop's algorithm](http://en.wikipedia.org/wiki/Loop_subdivision_surface) to a triangulated mesh.# Example
```javascript
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