commit a46c05ddd391c178451864b20434fd4f185c3520 Author: sirlilpanda <33928689+sirlilpanda@users.noreply.github.com> Date: Fri Apr 17 10:32:58 2026 +1200 init diff --git a/notebook.scad b/notebook.scad new file mode 100644 index 0000000..bbe29c3 --- /dev/null +++ b/notebook.scad @@ -0,0 +1,44 @@ +$fs = 0.01; +$fa = 0.01; + + +// A5 = 148 +page_size_width = 210; // [105, 148, 210] +page_size_height = sqrt(2)*page_size_width; + +notebook_thickness = 3; +hinge_radius = 10; +number_of_hinge_segments = 5; +hinge_gap = 2; + +echo(str("page size = ", page_size_height, "x", page_size_width, "mm")); + + + + + + +union(){ + color([0/255, 20/255, 0/255]) + cube(size=[page_size_width, page_size_height, notebook_thickness], center=true); + + color([128/255, 128/255, 10/255]) + translate([-page_size_width/2 - hinge_radius/2 , 0, 0]) + cube(size=[hinge_radius, page_size_height, notebook_thickness], center=true); +} + + +translate([0, 0, hinge_radius*2 - notebook_thickness]) +union(){ + color([0/255, 20/255, 0/255]) + cube(size=[page_size_width, page_size_height, notebook_thickness], center=true); + + color([128/255, 128/255, 10/255]) + translate([-page_size_width/2 - hinge_radius/2 , 0, 0]) + cube(size=[hinge_radius, page_size_height, notebook_thickness], center=true); +} + + +translate([-page_size_width/2-hinge_radius, 0, hinge_radius - notebook_thickness/2]) +rotate([90, 0, 0]) +cylinder(r=hinge_radius, h=10, center=true); \ No newline at end of file