commit b8db73f65cc1903074c46e30d7f8a487ff9d04c4 Author: Nicolas MASSE Date: Wed Mar 14 22:48:00 2018 +0100 initial commit diff --git a/001-Simple-Shapes/cuboid.scad b/001-Simple-Shapes/cuboid.scad new file mode 100644 index 0000000..96b6d99 --- /dev/null +++ b/001-Simple-Shapes/cuboid.scad @@ -0,0 +1,2 @@ +translate([20,20,20]) + cube([20,10,5], center=true); diff --git a/001-Simple-Shapes/cylinder.scad b/001-Simple-Shapes/cylinder.scad new file mode 100644 index 0000000..561149f --- /dev/null +++ b/001-Simple-Shapes/cylinder.scad @@ -0,0 +1 @@ +cylinder(r=10, h=20); diff --git a/001-Simple-Shapes/hexagon.scad b/001-Simple-Shapes/hexagon.scad new file mode 100644 index 0000000..f18949a --- /dev/null +++ b/001-Simple-Shapes/hexagon.scad @@ -0,0 +1 @@ +cylinder(r=10, h=20, $fn=6); diff --git a/001-Simple-Shapes/sphere.scad b/001-Simple-Shapes/sphere.scad new file mode 100644 index 0000000..3436c73 --- /dev/null +++ b/001-Simple-Shapes/sphere.scad @@ -0,0 +1 @@ + sphere(r=20, $fa=1, $fs=0.5); diff --git a/002-Union/bolt.scad b/002-Union/bolt.scad new file mode 100644 index 0000000..b829cd1 --- /dev/null +++ b/002-Union/bolt.scad @@ -0,0 +1,9 @@ +// M10 Bolt +union() { + // A standard M10 bolt has a 19,62mm diameter and an height of 5mm + color([0.5,0.5,0.5]) + cylinder(d=19.62, h=5, $fn=6); + translate ([0,0,5]) + color([0.7,0.7,0.7]) + cylinder(d=10, h=50); +} diff --git a/002-Union/union.scad b/002-Union/union.scad new file mode 100644 index 0000000..a951829 --- /dev/null +++ b/002-Union/union.scad @@ -0,0 +1,4 @@ +union() { + color([1,0,0]) cube([20,20,20], center=true); + color([0,0,1]) sphere(14); +} diff --git a/003-Difference/washer.scad b/003-Difference/washer.scad new file mode 100644 index 0000000..1b1fc8f --- /dev/null +++ b/003-Difference/washer.scad @@ -0,0 +1,5 @@ +// A standard washer that has a nominal diameter of 12mm +difference() { + cylinder(d=24, h=3, center=true); + cylinder(d=12, h=4, center=true); +} diff --git a/004-Rotation/propeller.scad b/004-Rotation/propeller.scad new file mode 100644 index 0000000..1938d4a --- /dev/null +++ b/004-Rotation/propeller.scad @@ -0,0 +1,17 @@ +// Hub +cylinder(d=20, h=5, center=true); + +// First blade +rotate([0, 15, 0]) + translate([-5,5,-1]) + cube([10, 30, 2]); + +// Second blade +rotate([0, 15, 120]) + translate([-5,5,-1]) + cube([10, 30, 2]); + +// Third blade +rotate([0, 15, 240]) + translate([-5,5,-1]) + cube([10, 30, 2]); diff --git a/005-Intersection/octogon.scad b/005-Intersection/octogon.scad new file mode 100644 index 0000000..d8e6bd7 --- /dev/null +++ b/005-Intersection/octogon.scad @@ -0,0 +1,6 @@ + +intersection() { + cube([50,50,2], center=true); + rotate([0,0,45]) + cube([50,50,2], center=true); +}