3D Printing Generator
DeutschEnglish

3D-printed star gift box with a lid

A star you can fill

A star-shaped box works as a Christmas present before anyone opens it. This generator builds one from two parts: a base that holds the gift, and a lid with a fitting rim. Everything is calculated in your browser on your own device. Nothing is uploaded and you need no account. Your design is stored in the page link, which you can copy with “Share” and pass on.

You choose how many points the star has, from three to twelve, how large it is and how high the base is. A five-point star with a waist of 50 % is the classic Christmas star; seven points look like a lucky star; twelve points with a wide waist turn into a sun. Ready-made boxes are in the examples, for instance the classic star in red and gold, the eight-point advent star or the sturdy workshop tin.

The shape of the star

Five numbers define the outline. Points is the number of tips. Diameter is the distance from tip to tip, measured across the widest part. Waist says how deep the valleys between the tips go as a share of the tip radius: at 30 % the star is thin and spiky, at 50 % it is the familiar star, at 80 % the points are only slight bumps on a round shape. Tip rounding rounds off the tips with a radius of up to 4 mm. A rounded tip prints cleaner, is less likely to snap and does not poke anyone, which matters for children and for presents in a bag.

The generator draws the star with exact corners and then rounds only the outer tips. The valleys between the points stay sharp, because rounding them would fill the waist and make the star look fatter. Inside, the box uses the same outline, moved inward by the wall thickness, so the star shape continues inside. The usable space is the star minus the walls. The largest circle that fits inside is shown below the controls, so you can see at a glance whether an object such as a candle, a ring box or a tin of tea fits.

Base, rim and lid

The base is a floor and a wall. For the top 6 mm the wall is cut to half its thickness, from the outside, which leaves a thin rim on the inside edge. The lid has a top plate and a skirt that is cut to half the thickness from the inside. Together they overlap like the lid of a shoe box, but in the shape of a star. The two halves are separated by the fit clearance. A clearance of 0.2 mm means a gap of 0.2 mm between the rim and the skirt. That is tight enough that the lid does not wobble and loose enough to open without a tool on most printers.

Wall thickness is at least 2 mm, because the rim needs half of it: with 2 mm walls each half is 0.9 mm after the clearance, which is two perimeters of 0.4 mm nozzle width. With 3 mm walls the rim is 1.4 mm. The rim height (3 to 12 mm) decides how deeply the lid sits. A deeper rim makes the lid more stable but also needs more height, so a small box looks best with a rim of 4 or 5 mm.

When the base is too low for the rim, the generator shortens the rim and says so. The same happens when the star is so small inside that less than 8 mm of space remains.

Why the lid is flat

It would be tempting to give the lid a pyramid roof. We tried: a hollow star-shaped roof leans inward on every side, and at the tips of the star the inner surface has to move inward about three times as fast as the walls. In a test slice, the slicer added supports at exactly those places. A solid roof would be heavy, and a roof printed hollow needs supports to keep the inside clean. That is why the lid is a flat plate with a skirt, printed upside down: the top plate lies on the bed, and the skirt grows upward from it. Nothing overhangs and the smooth bottom side of the print becomes the visible top of the lid.

Instead of a roof, the lid carries an emblem, a smaller star in its own color, set flush into the top plate. The emblem is as thick as four layers (0.8 mm) and is a separate part in the 3MF, so a multi-material setup prints it in its own filament. A single-nozzle printer cannot do it with a color change, because the emblem and the top plate share the same layers; give the emblem the lid color instead. The size runs from 20 to 90 % of the star. If you give the emblem the color of the lid, it disappears and the lid is plain.

Colors

The three color slots are base, lid and emblem. For one filament nothing is needed: pick a color and download the STL, or the 3MF with one part. For two colors, give base and lid different colors and make the emblem the same as one of them. For three colors, all slots differ. The 3MF stores each color as its own part with its own extruder number, so PrusaSlicer, Bambu Studio and OrcaSlicer assign the filaments automatically.

Combinations that work well for Christmas: red base with a gold lid and a red emblem, dark green with gold, white with silver for a wedding favor, dark blue with white and a golden emblem for a night-sky look. For a neutral tin, one color without an emblem is fine.

From the screen to the printer

The default box (five points, 85 mm across, 36 mm base) printed in PLA with a 0.4 mm nozzle and 0.20 mm layers on a Prusa MINI profile comes out at 31.8 g and a print time of 1 hour 5 minutes for base and lid together. The base is the larger part with about 25 g in 53 minutes, the lid about 7 g in 19 minutes. The spiky star (90 mm, 40 % waist, 50 mm high) uses 42.5 g in 1 hour 23 minutes. The sturdy tin with 3 mm walls and a 12 mm rim takes 45.5 g. A twelve-point sun case of 85 mm and 20 mm height needs 30.6 g.

All of these were sliced with automatic supports switched on as well, and the slicer added no support material.

Tips for printing:

  • Orientation: leave both parts the way they are. The base stands on its floor, the lid lies on its top plate. The lid’s top surface is the first layer, so a smooth plate gives the lid a smooth finish.
  • Adhesion: the floor and the plate are large and flat, a clean plate is enough. Let the bed cool down before you remove the parts.
  • Fit: print the base first, then the lid, and try them. If the lid is too tight, raise the clearance by 0.05 mm and print only the lid again. The 3MF keeps the parts separate.
  • Seams: set the seam to “aligned” or “back” in the slicer. On a star, the seam falls on a valley and hardly shows.
  • Speed: a normal profile works. Slower outer walls give crisper tips.
  • Filament: PETG also works. The lid is slightly tighter in PETG, so use a clearance of 0.25 mm.

Ideas

A star box is a gift in itself: chocolates or cookies for the neighbors, a ring or jewelry for the person you love, a gift voucher folded into the lid, tea bags for a colleague, or the 24 little surprises of an advent calendar, one box per day. With three points and rounded tips the star becomes a small tin for guitar picks or coins. With twelve points it is a sun-shaped jewelry case. Because everything is parametric, you can make a whole set in minutes: change only the number of points or the colors and download again.

Origin and license

The idea of a star-shaped Christmas gift box made of a base and a lid comes from the Star Box by Torsten on Printables (CC0 1.0). The source file could not be fetched when this generator was written, so no code, mesh or dimension was taken from it. The star outline, the fitting rim, the upside-down lid and the emblem were designed from scratch. Thanks to Torsten for the nice idea. All details are on the licenses page.

Ready for your first box? Open the generator or browse the examples.

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
Points5–Number of star points, 3 to 12. Five is the classic Christmas star.
Diameter85–Distance from tip to tip. Base and lid lie side by side on the bed, so two stars should fit in 180 mm.
Waist50–How deep the valleys between the points go, as a share of the tip radius. Low is spiky, high is a fat, round star.
Base height36–Height of the base without the lid.
Wall thickness2–Thickness of the walls. The fitting rim uses half of it.
Floor and top1.6–Thickness of the floor and of the top plate of the lid.
Fit clearance0.2–Gap between lid and base on the fitting rim. 0.2 mm fits snugly on most printers.
Rim height6–How far the lid slides over the base.
Emblem size50–Size of the small star on the lid, used when it has its own color.
Tip rounding1.5–Rounds the star tips, 0 = sharp. Rounded tips print cleaner and are safer to hold.

Frequently asked questions

How does the lid stay on?

The base ends in a thin rim that slides into the lid. The lid covers the rim for 6 mm and sits on the shoulder of the wall. With the default clearance of 0.2 mm the fit is snug but not stuck: you lift the lid with two fingers and it closes with a soft push. If your printer prints a little fat, raise the clearance to 0.25 or 0.3 mm.

How much fits inside?

The default box (five points, 85 mm across, 36 mm high) holds about 73 cm³. The widest round object that fits is about 34 mm across, so a ring box, a bar of chocolate cut in half, a few tea bags or a handful of nuts fit well. A taller box or a wider waist adds volume quickly.

Do I need supports?

No. The base stands on its floor with straight walls, and the lid is printed upside down with its top plate on the bed and the skirt standing up. We sliced the default box, the spiky star and the sturdy tin with automatic supports switched on, and the slicer added no support material at all.

Can I print it in one color?

Yes. In single-color mode base, lid and emblem are exported as one part and the emblem is left out. For two colors, print base and lid in different filaments. For three colors, the 3MF holds the emblem as its own part, flush with the lid, so you need a multi-material setup. A color change at one layer height is not enough, because the emblem and the top plate share the same layers.

Why do base and lid lie side by side on the plate?

So you can print the whole box in one go. The two parts are set apart by 6 mm. If two stars are wider than your bed, the generator shows a note: reduce the diameter, or print the parts one after the other by exporting the 3MF and moving one part in your slicer.

How thick should the walls be?

Two millimeters is the minimum and the default: with a 0.4 mm nozzle that is four to five perimeters on the wall and two on the thin rim. For a tin that has to survive a fall, use 3 mm with a 2.4 mm floor. Walls over 3 mm only pay off when the box is large.

Origin & license

  • Star Box by Torsten · CC0 1.0 · idea – idea (a star-shaped Christmas gift box made of a base and a lid); the source file was not fetched, the geometry is newly designed, nothing copied