3D Printing Generator
DeutschEnglish

Miter box: 3D print one for your trim and saw

A miter box made for your profile

A miter box guides the saw so the cut goes through the trim at the right angle. This generator prints one that fits your own profile and your own saw: a 40 × 25 mm cable duct, a skirting board, picture frame moulding or a square strip for model making. The box is a U-shaped channel that holds the trim, with saw slots in both walls. The examples show twelve finished versions you can open with one click and adapt.

The advantage over a store-bought box is that there is no play you did not choose yourself. The channel is as wide as your profile plus a little clearance, and the slots are as wide as your blade. The saw runs tightly guided and the cut comes out cleaner than in a box that fits everything a little.

How the generator works

The generator runs entirely in your browser. Nothing is uploaded, and your design lives in the link: share it and the same box opens with the same sizes. You enter the profile and the saw, choose the angles and download the file as STL or 3MF. The preview updates with every change.

The design goes back to a cutting box for plastic trim that is published as an OpenSCAD model. The generator keeps its channel, slots and floor groove and adds more angles, labels, a flange and the split for long boxes.

Profile and play

Start with the profile as it lies in the box.

  • Profile width (3–120 mm): the width of the trim across the channel. The default is 40 mm.
  • Profile height (3–80 mm): the height as the profile lies in the box. A skirting board stands upright, so its height is the large dimension.
  • Width play (0–4 mm, default 1 mm): added to the profile width so the trim slides in easily. Planed wood needs 0.5 to 1 mm, rough stock more.
  • Guide above the profile (0–40 mm, default 8 mm): how far the walls reach above the top of the profile. Taller walls guide the saw longer and more accurately but use more material.

Measure the profile with calipers before printing. Cable ducts and skirting boards often differ by half a millimeter from the size on the package.

Saw, slot and groove

The slots decide how well the box guides.

  • Saw blade thickness (0.3–2 mm, default 1.2 mm): the width of the cut, blade plus set of the teeth. A pull saw is about 0.6 mm, a hacksaw 0.9 mm and a backsaw 1.2 mm.
  • Slot play (0–0.6 mm, default 0.2 mm): added to the blade thickness. The slot width is blade plus play, so 1.2 mm of blade and 0.2 mm of play give a 1.4 mm slot.
  • Groove in the floor (0–10 mm, default 2 mm): how deep the slots reach into the floor so the saw cuts all the way through the profile without cutting the floor apart. The floor keeps at least 1.5 mm, or 3 mm with a flange. If you enter more, the generator limits the value and shows a note.

Slots under 0.6 mm are hard to print true. In that case test one print with your saw before you print a whole series.

Angles: crossing or side by side

The switches choose which slots the box gets:

  • 90° (square cut)
  • 45° both ways: for frames and corners with four sides
  • 22.5° both ways: for octagons
  • 30° both ways: for hexagons
  • 60° both ways: for triangles

By default 90° and 45° are on. The slot layout has two options. With “Crossing” all slots pass through the middle of the box. This is short and compact, but the slots intersect inside the profile and the blade can slip into a neighboring slot when you change angle. With “Side by side” every angle gets its own place and no slot crosses another. The box gets longer but guides cleaner. If the side-by-side box does not fit on the bed, the generator falls back to crossing and shows a note.

As a rule of thumb: for frames with 90° and 45°, “Crossing” is ideal. Once you add 22.5°, 30° and 60°, choose “Side by side”.

Length, margin and long boxes

Length defaults to 0, which means as short as the slots and labels allow. The end margin (3–30 mm, default 8 mm) is the solid wall beyond the outermost slot. A fixed length up to 300 mm makes the box longer, for example when long strips should rest better.

Above 175 mm the generator splits the box into two pieces with dovetails. This is needed because each piece may measure at most 180 mm to fit on the bed. The split lies between two slots so no slot is cut through. The joint play (0.05–0.4 mm, default 0.15 mm) decides how easily the halves slide together. For most printers 0.1 to 0.2 mm is right. If the generator finds no place to split, you get a note: choose “Side by side” or fewer angles.

The example all angles in two pieces shows a split box with every angle. It weighs 100.49 g in total.

Labels

With angle labels the angle is engraved on the top of the wall beside each slot. That helps when a box has many slots and you do not want to count every time. Labels need walls of 5.5 mm or more and are left out on thinner walls. Thicker walls (3–15 mm, default 8 mm) guide the saw longer and carry the numbers better. The floor thickness (3–15 mm, default 6 mm) sets the thickness under the profile.

Base: screws or clamps

The base field chooses how the box is held:

  • None: the box rests loose on the table. That is enough if you hold it by hand.
  • Screw holes: a flange with counterbored holes so you can screw the box to a board. The screw size (2.5–6 mm, default 4 mm) sets the hole diameter. The hole gets 0.5 mm of play and a counterbore for the head.
  • For clamps: a plain flange without holes that you clamp to the edge of the bench.

Flange width (8–40 mm, default 16 mm) and flange thickness (3–10 mm, default 4 mm) set how far the flange reaches out on each side and how tall it is. On a 180 mm bed there is sometimes no room for a flange. The generator then leaves it out and tells you.

Why there is no bench-hook lip

Many wooden boxes have a lip underneath that hooks over the edge of the bench. Printed upright, that lip would overhang. It would need supports and be weak at the edge, because the layers are loaded in tension there. That is why there is a flange with screw holes and a variant for clamps. Both are stronger and print without supports.

Printing

The box lies on its floor on the bed. You need neither supports nor a brim. Use PLA or PETG, 0.2 mm layers and at least three perimeters. More perimeters make the slot walls stiffer, and the box does not need a high infill.

The numbers come from slices in PrusaSlicer for a Prusa MINI with the 0.20 mm SPEED profile and Prusament PLA:

ExampleWeightPrint time
Cable duct 40 × 25 mm (default)44.79 g1 h 43 min
Skirting board 60 × 15 mm52.48 g2 h 19 min
Mini box for 5 × 5 mm strips7.35 g29 min
LED profile 17 × 8 mm21.43 g56 min
Cable duct 60 × 40 mm with flange84.31 g3 h 5 min
All angles, in two pieces100.49 g4 h 4 min

No example needs automatic supports. With other slicers, nozzles or materials the times differ.

After printing, check the fit: push the profile in and run the saw blade through a slot. If it binds, raise the slot play by 0.1 mm and print again. If the profile sits too loose, reduce the width play. Deburr the slots with a piece of fine sandpaper if needed.

Safety and limits

The printed box is made for light hobby work: soft wood, balsa, plastic trim, cable duct and aluminum LED profiles. The blade slowly wears the plastic away and the slots widen over time. For hardwood, thick metal profiles and many cuts in a row, a metal box is the better choice.

Always keep your fingers away from the saw blade, hold the profile with your free hand behind the cut line or clamp it, and saw slowly without pressure. The box is not a jig for circular saws, jigsaws or any other power tool. Use it with hand saws only.

Uses

  • Cable duct for walls or under the desk, cut at a miter.
  • Skirting boards in corners where walls are not exactly square. Measure the angle and choose the matching slot.
  • Picture frames made from moulding, with 45° for four sides.
  • Octagons and hexagons for frames, stools or decoration, with 22.5° or 30° and 60°.
  • Model making with small strips and a small, light box.
  • LED profiles made of aluminum, cut to length.

Origin and license

This generator ports part of osheart’s OpenSCAD cutting box on GitLab (MIT license, © 2026 Esben Madsen). The channel with walls, the 45° and 90° slots and the floor groove come from there. A parity test against the original in OpenSCAD shows 0.00 % volume difference in two cases. Everything else is new: the extra angles, the layout, the labels, the flange and the split for long boxes. The full license text is on the licenses page. You may use, print and give away the models you create with the generator.

Ready? Open the generator, browse the examples or try the door stop generator.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Profile
Profile width40 mm3 – 120 mmWidth of the trim or strip across the channel, as it lies in the box.
Profile height20 mm3 – 80 mmHeight of the profile as it lies in the box (skirting boards stand upright).
Width play1 mm0 – 4 mmAdded to the profile width so it slides in easily: 0.5–1 mm for wood, more for rough stock.
Guide above the profile8 mm0 – 40 mmHow far the walls reach above the profile. Taller walls guide the saw better.
Saw and slots
Saw blade thickness1.2 mm0.3 – 2 mmBlade including the set of the teeth: pull saw about 0.6, hacksaw 0.9, backsaw 1.2 mm.
Slot play0.2 mm0 – 0.6 mmAdded to the blade thickness. Slot width = blade + play.
Groove in the floor2 mm0 – 10 mmHow deep the slots reach into the floor, so the saw cuts through the profile. The floor keeps at least 1.5 mm (3 mm with a flange).
Box
Wall thickness8 mm3 – 15 mmThicker walls guide the saw longer and carry the angle labels.
Floor thickness6 mm3 – 15 mmThickness of the floor under the profile.
Length0 mm0 – 300 mm0 = as short as the slots and labels allow. Longer than 175 mm, the box is split in two pieces with dovetails.
End margin8 mm3 – 30 mmSolid wall beyond the outermost slot or label at each end.
Joint play0.15 mm0.05 – 0.4 mmPlay per side in the dovetails of a split box: 0.1–0.2 mm for most printers.
Base
Flange width16 mm8 – 40 mmHow far the base flange reaches out on each side.
Flange thickness4 mm3 – 10 mmHeight of the base flange.
Screw size4 mm2.5 – 6 mmScrew diameter; the hole gets 0.5 mm play and a counterbore for the head.

Frequently asked questions

Do I need supports to print it?

No. The box lies on its floor, the slots are vertical and nothing overhangs. Every example slices without automatic supports.

Which saw blade thickness should I enter?

Measure the cut, meaning the blade plus the set of the teeth. A pull saw is about 0.6 mm, a hacksaw 0.9 mm and a backsaw 1.2 mm. The slot play is added on top so the blade does not bind.

What happens above 175 mm?

The generator splits the box into two pieces with dovetails so each piece fits on the bed. You push the halves together and glue them if you like. You set the joint play yourself.

Why is there no bench-hook lip underneath?

A lip that hangs under the box would overhang when printed upright and would be weak. Use the flange with screw holes, or clamp the box to the bench instead.

Can I cut hardwood with it?

It is made for light hobby work: soft wood, balsa, plastic trim and cable duct. It is not meant for hardwood, metal or any power saw.

Origin & license

  • openscad (osheart) by Esben Madsen · MIT · code ported – cutting box for plastic trim (channel, 45°/90° slots, floor kerf)