Comments (4)
This library doesn't support creating cut paths, but you could calculate them from merge the borders of boxes (or areas).
Or modify the algorithm to record cuts if you only use guillotine.
from sharp3dbinpacking.
Yes. I already thought about.
Also, there is no possibility to use different sizes of bins?
from sharp3dbinpacking.
Yes. I already thought about.
Also, there is no possibility to use different sizes of bins?
For now this is unsupported, but you could modify BinPackParameter and BinPacker to make it possible, for example, change
public decimal BinWidth { get; private set; }
public decimal BinHeight { get; private set; }
public decimal BinDepth { get; private set; }
public decimal BinWeight { get; private set; }
to
class BinAttributes {
public decimal BinWidth { get; set; }
public decimal BinHeight { get; set; }
public decimal BinDepth { get; set; }
public decimal BinWeight { get; set; }
public int MaxNumber { get; set; }
}
List<BinAttributes> Bins { get; private set; };
and make BinPacker respect the MaxNumber.
https://github.com/303248153/Sharp3DBinPacking/blob/master/Sharp3DBinPacking/BinPacker.cs#L27
If performance is not that important, you could also use result.BestResult.Take(x) to take the first x bins, and then pass result.BestResult.Skip(x).SelectMany(c => c) as remain cuboids with a new BinPackParameter.
from sharp3dbinpacking.
After some time I am still interested in this project.
I would like to use guillotine only. My only request is to record guillotine cuts and to use different sizes of bins as I wrote before. :)
from sharp3dbinpacking.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp3dbinpacking.