Browse Source

initial commit

master
Nicolas Massé 8 years ago
commit
b8db73f65c
  1. 2
      001-Simple-Shapes/cuboid.scad
  2. 1
      001-Simple-Shapes/cylinder.scad
  3. 1
      001-Simple-Shapes/hexagon.scad
  4. 1
      001-Simple-Shapes/sphere.scad
  5. 9
      002-Union/bolt.scad
  6. 4
      002-Union/union.scad
  7. 5
      003-Difference/washer.scad
  8. 17
      004-Rotation/propeller.scad
  9. 6
      005-Intersection/octogon.scad

2
001-Simple-Shapes/cuboid.scad

@ -0,0 +1,2 @@
translate([20,20,20])
cube([20,10,5], center=true);

1
001-Simple-Shapes/cylinder.scad

@ -0,0 +1 @@
cylinder(r=10, h=20);

1
001-Simple-Shapes/hexagon.scad

@ -0,0 +1 @@
cylinder(r=10, h=20, $fn=6);

1
001-Simple-Shapes/sphere.scad

@ -0,0 +1 @@
sphere(r=20, $fa=1, $fs=0.5);

9
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);
}

4
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);
}

5
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);
}

17
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]);

6
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);
}
Loading…
Cancel
Save