Skip to content

comster/3dBinPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D BIN PACK
-------

Find out if a bin can contain the given packages.

Example usage:

    var ThreeDimensionBinPack = require('./index.js')();
    
    // Create a bin with dimensions h, w, d
    var bin = new ThreeDimensionBinPack.Bin(10, 9, 11);
    
    // Add your packages to the bin
    bin.addPackage(2,4,8);
    bin.addPackage(2,2,10);
    bin.addPackage(2,5,10);
    
    // Determine if the packages will fit into the bin
    bin.doesFit(function(packagesFitInsideBin){
        console.log('does it fit? '+packagesFitInsideBin);
    });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages