• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Stupid computers!

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    3d array corresponding to the possible box sizes. Each element represents a unit of set fidelity(1m,1cm etc) as items are 'packed' update the bool in the array to indicate space taken. Start with the largest item and fit it in a corner then iterate through the others in decreasing size. Same as a human would do it.

    Comment


      #12
      3d array corresponding to the possible box sizes. Each element represents a unit of set fidelity(1m,1cm etc) as items are 'packed' update the bool in the array to indicate space taken. Start with the largest item and fit it in a corner then iterate through the others in decreasing size. Same as a human would do it.
      Indeed. Think that's more or less what I started doing before I read this. To biggest item in dim 1, get lowest volume of alternative orientations of 2nd biggest, then 3rd etc. If only have 2nd biggest item do ditto for next biggest etc. Fortunately we only have 7 diff products. May get it sorta sorted tomorrow.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment


        #13
        Originally posted by tractor View Post
        Change the angle from which you approach the problem.
        Must me good entertainment, as it seems people pay for this kind of doubletalk?

        Comment

        Working...
        X