in reply to Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.

I guess I don't understand the correlation between your discreet thicknesses and the pairs entered. How does

1,2 1.5,3

correlate to the descreet thicknesses?

0.4, 0.8, 1.6, 2.4, 3.2, 4.7, 6.4

Also, why is the pair 3,0 different? Is it a delimiter?

Soon to be unemployed!

  • Comment on Re: Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.
by doowah2004 (Monk) on May 03, 2005 at 15:08 UTC
    To clear it up, the first number is the width that you want, the second number is the thickness that you want. You can't always get what you want, but it should be close (that is where the discreet thicknesses of the building blocks comes in).

    Lets say that you wanted a width/thickness of 5,0.2, well there is no constraint on width, but there is a 0.4 minimum thickness for the building blocks, so you would have to decide if you would span the 5 width (this could be cm,mm...) with 0 thickness (rounded down) or 0.4 thickness(rounded up).

    The pair 3,0 is different because it has 0 thickness.
    So if you were builing a 2 humped shape and had a 0 thickness in the middle, you could then look at it as 2 seperate shapes, but if it was a small thickness, say 0.4 in the middle, then it would be 1 complete shape.

    I hope that this clears things up.