> For the complete documentation index, see [llms.txt](https://willadams.gitbook.io/design-into-3d/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://willadams.gitbook.io/design-into-3d/butt-joints-and-measuring.md).

# Butt Joints and Measuring

Most joinery techniques require that each part be extended into the other and the stock which forms the joints be removed so that the two parts fit together. For simple and rough or rustic projects, it may be appropriate to simply cut the parts to size and mate them using adhesives and hardware. A classic example of this approach is a bird house for wrens:

![Wren birdhouse](/files/-MZjxf1ihR_QGVBMY1tL)

Birdhouses need to be sized for the species of bird they are intended for: <http://indianagourdsociety.org/education/birdhouses.pdf>

Like all other projects, it begins with a set of parameters:

![Wren birdhouse: parameters](/files/-MZjy2iEW7n7FApPLOcF)

Usually designed around the dimensions of the stock used:

![Wren birdhouse: calculated dimensions](/files/-MZjyYQjdOOuYoF3Wo4j)

This requirement suggests a technique which will address the inability to parse an object w/in OpenSCAD to determine its dimensions:

![Wren birdhouse: module for calculating dimensions](/files/-MZjzI2rl6w3JD_eY-KN)

Create a module, the output of which may be plugged in wherever a given set of dimensions is used.

An optional improvement here is to allow inputting the desired axis (two is easiest, but more may be done) as shown in:

<https://www.blockscad3d.com/community/projects/1205684>

The BlockSCAD link for the wren birdhouse is:

{% embed url="<https://www.blockscad3d.com/community/projects/1168572>" %}

It includes a matrix for laying out the parts for cutting:

![Wren birdhouse: parts for cutting](/files/-MZk-0sJmVE2JNy-Rv5H)

The parts layout may be easily prepared for exporting as a DXF or SVG using the projection() command as previously shown.

It is frequently necessary to refer to the dimensions of parts while working. While these could be stored as variables, it may be more expressive to calculate them using a module which can then return either width or depth based on a parameter:

![Dimension calculation using a module](/files/-MZnQbagB1yJTXe746VZ)

Then it is simply a matter of cutting out the parts:

![Birdhouse parts](/files/-Maxz_W7majmHyly_Pkf)

and assembling with a few nails and a hinge and associated hardware:

![Wren birdhouse](/files/-Maxznc3p0KyODinuNuG)

Files for this size are available at: <https://community.carbide3d.com/t/a-birdhouse-for-wrens-but-parametric-so-adjustable/32161/11>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://willadams.gitbook.io/design-into-3d/butt-joints-and-measuring.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
