Wondering what’s next for npm?Check out our public roadmap! »

    mesh-mass

    1.0.0 • Public • Published

    mesh-mass

    experimental

    Calculates mesh mass and area. Note that the volume does not make sense if the mesh does not represent a solid.

    Implementation comes from this paper

    Usage

    NPM

    var mass = require("./index");
    var bunny = require("bunny");
     
    var massProperties = mass(bunny.cells, bunny.positions);
    console.log(massProperties);

    require("mesh-mass")(cells, positions)

    Returns an object with properties area and volume.

    Contributing

    See stackgl/contributing for details.

    License

    MIT. See LICENSE.md for details.

    Keywords

    Install

    npm i mesh-mass

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar