FooCAD Source Codeinclude General.foocad
/*
*/
class Container : General() {
// Timber is either 1.8m or 2.4m.
// I want to fit TWO 600mm boxes, so the length must be over 1200mm,
// so the 2.4m timber is no good.
// 1.8m timber leaves 500mm, which is just about perfect (for the width W)
var length = 1300
var width = 450
var ringCount = 3
fun height() = (ww + gap) * ringCount - gap
override fun build() : Shape3d {
return rings( lumber, length, width, gap, ringCount ) +
slattedFloor( length, width ) +
feet( length, width ) +
lid( length + 80, width + 80, height() )
}
}