The file 'Customizable Any Shape Box / Cookie Cutter 3D Printer Model' is (stl,scad) file type, size is 48.5KB.
The idea here is that if you supply a set of points for your shape it will make a box and lid for it or you could just as easily use it as a cookie cutter I suppose. You can come up with a random design or draw round something on graph paper and then work out some points.
The variable myvector needs to be input in the following format [[x1,y1],[x2,y2],.....]
It is important to include the extra opening square bracket and closing square bracket.
The other variables should be clear and scalefactor allows you to scale up your vector if you need to.
Here are some examples to try and please share your any new ones in the comments.
triangle
[[0,0],[20,0],[10,sin(60)*20]]
square
[[0,0],[0,10],[10,10],[10,0]]
tree
[[25,50],[34,40],[29,40],[36, 30],[31,30],[38,20],[33,20],[42,7],[30,7],[30,0],[20,0],[20,7],[8,7],[17,20],[12,20],[19,30],[14,30],[21,40],[16,40]]
shark
[[28,12],[27,9],[26,7],[27,4],[24,6],[18,5],[17,3],[15,4],[10,4],[8,5],[8,0],[6,2],[5,5],[1,6],[3,7],[0,8],[2,9],[5,10],[10,10],[12,14],[14,10],[17,9],[23,8],[28,12]]
butterfly
[[-1,6],[-1,4],[-0.5,3],[0.5,3],[1,4],[1,6],[2,4],[3,3],[5,3.5],[7,5],[8,7],[7,10],[5,13],[7,16],[8,19],[8,21],[7.6,22],[7,23],[6,23.7],[4,23],[3,22],[2,20],[1,17],[1,18],[0.5,19],[-0.5,19],[-1,18],[-1,17],[-2,20],[-3,22],[-4,23],[-6,23.7],[-7,23],[-7.6,22],[-8,21],[-8,19],[-7,16],[-5,13],[-7,10],[-8,7],[-7,5],[-5,3.5],[-3,3],[-2,4]]
star
[[0,23.8],[20.2,38.5],[12.5,62.2],[32.7, 47.6],[53,62.2],[45.2,38.5],[65.5,23.8],[40.5,23.8],[32.7,0],[25,23.8]]
bat
[[84,34],[88,30],[94,26],[100,24],[108,22],[98,20],[90,16],[86,12],[76,12],[70,10],[66,6],[64,2],[60,4],[52,6],[46,4],[40,0],[36,10],[28,16],[20,16],[22,26],[18,32],[8,34],[4,46],[0,52],[12,52],[20,52],[24,54],[28,42],[34,32],[40,26],[46,34],[46,30],[50,30],[54,28],[56,30],[54,22],[56,20],[60,22],[68,26],[76,30],[84,34]]
bat.stl | 165.4KB | |
butterfly.stl | 160.2KB | |
polybox.scad | 2.9KB | |
random.stl | 54.7KB | |
shark.stl | 99.5KB | |
star.stl | 45.3KB | |
tree.stl | 100.8KB |