---
description: A project which uses multiple materials and techniques
---

# A Final Project

While there are many guides for making coopered boxes, none of them discuss the underlying mathematics and algorithms. This project allows one to design a traditional chest made up of multiple boards, and straps of different materials. The project will use metal for the central flat straps, and leather for the edging and corner protectors way be fashioned of either material, or suitable hardware may be sourced commercially.

The first consideration is the necessary parameters. Rather than using absolute/specific dimensions, the height and length and width of the project will be defined in terms of the base width of the boards, so the first parameters would be to define:

* BoardWidth
* BoardThickness
* BoardGap

In keeping things proportional, it will also be expedient to use that last value as the gap for the metal parts, but since metalwork is normally more precise we will use one-fourth that dimension.

The actual size of the base of the box will be calculated from:

* BoxWidthinBoards
* BoxDepthinBoards
* BoxHeightinBoards

In addition we will provide the following options for styles of lid:

* Flat — a plain flat lid
* Faceted — a three-sided, Mansard-style lid
* Arched — a traditional coopered (curved, multi-piece) lid

In order to facilitate the strapping (for simplicity's sake it is assumed the flat strapping is the same width and thickness as the angle profile) it will be necessary to specify the dimensions for it:

* AngleWidth
* AngleThickness

Lastly we will need to fasten things with some sort of hardware which requires that a hole is placed through the strapping — for simplicity a matching hole will not be machined during manufacture, instead it is expected that the holes will be drilled during assembly. Similarly, the actual hardware used is not specified, only the diameter of the necessary hole:

* HardwareDiameter

This yields:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5j8utEBfGdQWy8dp_y%2F-M5jFI0DErx0CzBWkT-e%2FBlockscad%20final%20project%20variables.PNG?alt=media\&token=a70e43a4-1202-4279-9379-f76b92030a38)

In addition, since we are cutting the boards in half lengthwise for the lid parts it will be necessary to know the width of the saw kerf (dimension of material lost to the cutting), so add:

* SawKerf

Working in multiples of boards we need a module to create an array of boards. The inputs should be obvious, as are the calculations and looping. It will be expedient to calculate out the actual dimensions of the (lower portion of the) box:

* boxwidth
* boxdepth
* boxheight

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5jPNsXKK2UdbQ-QUUl%2F-M5lkC4T-37wCx5OwOEo%2FBlockscad%20final%20project%20makeboardarry.PNG?alt=media\&token=24d9fef0-d3f7-40c0-9acf-f246b5749f8a)

Next we erect the front and back and ends:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5lkEAphjn42SqGfjRf%2F-M5lqb16v2LI2fsB9bC1%2FBlockscad%20final%20project%20front%20and%20back%20and%20ends.PNG?alt=media\&token=278f608c-7910-4efd-8c46-798fa4495642)

Next is the logic for the lid, a simple if-then construct based on the allowed lid types (which will become a drop-down menu in OpenSCAD). Since the skirt will vary, amongst designs, but the basic version will work for multiple designs it is made into a module (from which code will be copied for the 3-faceted version):

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5lrwBtVyc4REgw7bWP%2F-M5m0XF6LhWNXLikqlqx%2FBlockscad%20final%20project%20makelidskirt.PNG?alt=media\&token=27878777-3370-41bd-bf36-78d456a04aba)

Placing the flat lid is simply a matter of positioning a duplicate of the bottom:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5m0YpQ3CAveqyGCu-w%2F-M5m1u8oL97jypUIgKQt%2FBlockscad%20final%20project%20lid%20-%20flat.PNG?alt=media\&token=8f668b28-3b44-4438-b8d5-d0d4ccbec01c)

The faceted lid is a basic variation, starting with appropriate angles on the skirt pieces:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5oaVOdjOzHHdqv4pqJ%2F-M5oam0h5ZmJAsWDhKyv%2FBlockscad%20final%20project%20makefacetedlidskirt.PNG?alt=media\&token=57f84f40-862d-47df-b632-72bd861c630b)

Adding the front/back facets is easily done:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5qPBjNCk9DGxD4J0LS%2F-M5qYsojWpnNuLS0D1PN%2FBlockscad%20final%20project%20makefacetedlidfrontback.PNG?alt=media\&token=2f8a902c-6b41-4625-8265-5b9a0fc9ee88)

The ends require a bit of trigonometry to calculate the offset of the angled boards and necessary gaps:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5qYutN9rAyhnu6FEkX%2F-M5qqM5uO1RqRRw1_CeZ%2FBlockscad%20final%20project%20makefacetedlid%20ends.PNG?alt=media\&token=c8603a62-acbc-46a6-b405-da98bf10ffa2)

Add the boards at the top to finish this version of the box:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5sSXR8xjzxrG8P7M0J%2F-M5s_CAr-q20h32XsRLF%2FBlockscad%20final%20project%20makefacetedlidtop.PNG?alt=media\&token=79b44b54-cc25-417f-b57c-8896db8ca971)

The arched form requires some additional variables:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M5wiPHxrWfLCMXJ7_YM%2F-M5wikfGXAEDnnyXlEgZ%2FBlockscad%20final%20project%20variables%20for%20arched%20lid.PNG?alt=media\&token=f4d6f5b1-b23c-40b2-8862-6555849a1e50)

Arching the lid so that it fits requires calculating two triangle angles:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M6w6E2Gwv-RWSWkyMmj%2F-M6w81e8tMp1IGLnvYU6%2FBlockscad%20final%20project%20archedlid.PNG?alt=media\&token=78462357-3c54-48e2-86b1-78f32ccfe71c)

Combining all the wooden parts and one arrives at:

![](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-M6w8AlAUwCz2c2Y4faa%2F-M6w_nEdxmBMEMpE2qOO%2FBlockscad%20final%20project%20withoutstraps.PNG?alt=media\&token=544097c7-315a-40b3-a8d6-01a2a4f605dd)
