Contributors:
Parametric Cookie Cutter is licensed under a Creative Commons Attribution 4.0 International License.
This package contains code to turn DXF-based outlines into cookie cutters for 3D printers.
Parametric Cookie Cutter (PCC) is intended to be used interactively by fiddling with global variables in cookie_cutter.scad via OpenSCAD. It may work with the command line, but I have no idea.
PCC generates shapes with the following features:
The quality of the results depends on a lot of factors (your skill as a baker aside). These include the complexity of the shape, its size, the quality of your print, whether you smooth your prints, and more.
PCC allows you to build your cutter and imprinter in the same piece, but it's often wise to separate them so the imprint is done afterwards. The larger the surface area of the cutter/imprinter, the more the dough will stick to it. And of course if it sticks to it, then your cookie comes out looking funny (but tastes the same!). If you're up for the experiment, try it both ways.
There are several categories of tunable variables in this package.
PCC allows you to name up to two DXF files containing the outlines of the cookie cutter patterns:
OpenSCAD can import simple DXF files, but it can handle only a small subset of the kinds of geometry people commonly use in DXF files. I have had no luck getting it to import anything with curves; they either come out as line segments or the file fails to load entirely.
The easiest way to handle this is to have your software output your shape to an EPS file and then convert that file to DXF format. There are free online services like https://cloudconvert.com/eps-to-dxf to do this. The resulting DXF file will probably work with PCC.
Note that when you see your shape in the 3D viewer, it will appear backwards; the design is flipped so the upper flange can be printed flat.
Now this is a hot mess. A lot of people work in AutoCAD, which may be using inches, feet, millimeters, or light years. In any case, DXF doesn't support units, so OpenSCAD has no way of knowing what the original intent was. As far as I know, most 3D printers think in millimeters, so that's my assumption in this package.
To compensate, I added a scaling variable so nobody has to go back to the original editor and go through the hassle of several format conversions. This scales only the DXF file contents, not the features of the flanges and such:
Your object is expected to be near the origin. It must be a 2D path. Shapes don't need to be closed. The work area is defined as about 1 meter square, specifically for the creation of support strips (see below). 1 meter is a hell of a cookie, but I'm not judging if you want it to be larger. There's a constant in the file called workDiameter to declare this.
Flanges. A flange is printed to strengthen the edges and provide a surface to press on to push the cutter into the dough. It's a little thicker than the edges. It sticks out, and it can also optionally stick into the shape a little as well. Sometimes playing with the flange sizes gives you the ability to skip the support strips, but it's a matter of balance and personal preference. If you make your imprints filled (see below), you may not need a flange on them unless you need the flanges to hold things in place. The flanges are controlled by the following variables:
Support strips. Some shapes have internal floating features (like the smiley face example) or wobbly thin features (like the pi example). If you use imprints, you'll need to play close attention to this to make sure you have strips that support your internal unconnected edges. PCC will generate strips as part of the flange, controlled by the following variables:
Esoterica. The following variables are likely to be of no practical importance:
I came into this completely naïve. I'm an engineer, not a baker. Cookies... dough... Pillsbury... easy, right? My first attempt used peanut butter cookie dough from a tube and it made cookies that puff up like marshmallows, obliterating all details. The smiley face looked like a bee sting victim.
Also my first attempts were way too deep; they were about 15mm deep on the cuts and 7mm deep on the imprints, stamped into dough about a half inch deep. Also wrong.
Gary Rechnitz has included a recipe with some additional instructions.
Feel free to fork this in github and request pulls.
batman.stl | 1.1MB | |
batman_cut.dxf | 87.7KB | |
batman_imprint.dxf | 98.4KB | |
cookie_cutter.scad | 10.1KB | |
letter_g.dxf | 87.1KB | |
letter_g.stl | 138.2KB | |
letter_j.dxf | 85.7KB | |
letter_j.stl | 94.7KB | |
letter_s.dxf | 85.4KB | |
letter_s.stl | 199.1KB | |
pi.dxf | 129.3KB | |
pi.stl | 275.9KB | |
radioactive.stl | 150.3KB | |
radioactive_cut.dxf | 88.7KB | |
radioactive_imprint.dxf | 90.1KB | |
README.md | 8.8KB | |
recipe.pdf | 41.4KB | |
round_trefoil.dxf | 84.8KB | |
round_trefoil.stl | 178.6KB | |
s.stl | 199.1KB | |
smiley_face.stl | 157.0KB | |
smiley_face_cut.dxf | 84.1KB | |
smiley_face_imprint.dxf | 88.0KB | |
superman.stl | 98.9KB | |
superman_cut.dxf | 81.9KB | |
superman_imprint.dxf | 85.9KB |