Nutella with Pepperoni and Mushrooms
    Have ideas to improve npm?Join in the discussion! »

    loop-subdivide

    1.0.0 • Public • Published

    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

    Install

    npm i loop-subdivide

    DownloadsWeekly Downloads

    414

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar