How to calculate linear ft given multiple items' dimensions?

This seemingly simple question has caused me a ton of frustration. I have a huge bit of terrible code I wrote once to calculate this and I’d like to clean it up or replace it with some legitimate, real math.

The trick is that items can be rotated in any direction.

Is there a reasonable equation for this?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • TheyDidTheMath
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • Youngstown
  • everett
  • rosin
  • slotface
  • ngwrru68w68
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • vwfavf
  • hgfsjryuu7
  • Leos
  • mdbf
  • cisconetworking
  • osvaldo12
  • khanakhh
  • Durango
  • GTA5RPClips
  • tacticalgear
  • ethstaker
  • tester
  • cubers
  • modclub
  • normalnudes
  • anitta
  • All magazines