1 use <dotscad/rounded_square.scad> // https://github.com/JustinSDK/dotSCAD
12 slot_height = buckle_height - 15;
13 slot_edge_offset = 5.5 + slot_width;
17 buckle_corner_r = 1.5;
20 module buckle_piece () {
22 rounded_square ([buckle_width/2, buckle_height], buckle_corner_r);
24 translate ([buckle_width/2 - slot_edge_offset, (buckle_height - slot_height) / 2, 0]) {
25 square ([slot_width, slot_height]);
26 translate ([slot_width/2, slot_height, 0]) circle (d=slot_width);
27 translate ([slot_width/2, 0, 0]) circle (d=slot_width);
32 module buckle_base (buckle_thickness=buckle_thickness) {
33 linear_extrude (buckle_thickness) {
34 translate ([-buckle_width/4, 0, 0]) square ([buckle_width/2, buckle_height]);
36 mirror ([1, 0, 0]) buckle_piece ();
41 module dragon (d=10) {
42 /* translate ([-d/2, -d/2, 0]) {
43 resize ([d, 0, 0], auto=true ) import ("./house-targaryen-game-of-thrones-2_fixed.stl");
46 cylinder (d=d, h=buckle_thickness);
51 translate ([0, -buckle_height/2, 0]) buckle_base ();
52 //translate ([0, 0, 0]) dragon (d=dragon_d);