Giter Site home page Giter Site logo

Comments (4)

303248153 avatar 303248153 commented on September 3, 2024

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.

Fikri-coder avatar Fikri-coder commented on September 3, 2024

Yes. I already thought about.
Also, there is no possibility to use different sizes of bins?

from sharp3dbinpacking.

303248153 avatar 303248153 commented on September 3, 2024

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.

Fikri-coder avatar Fikri-coder commented on September 3, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.