top of page

OpenSCAD Commands

Twists

 

linear_extrude(height = 210, twist = 90, slices = 660) {
  difference() {
    offset(r = 10) {
      square(20, center = true);
    }
    offset(r = 8) {
      square(20, center = true);
    }
  }
}
rotate([25,0,0])linear_extrude(height = 210, twist = 90, slices = 660) {
  difference() {
    offset(r = 10) {
      square(20, center = true);
    }
    offset(r = 8) {
      square(20, center = true);
    }
  }
}
rotate([-25,0,0])linear_extrude(height = 210, twist = 90, slices = 660) {
  difference() {
    offset(r = 10) {
      square(20, center = true);
    }
    offset(r = 8) {
      square(20, center = true);
    }
  }
}

Tab

 

union() {
        cylinder (h = 4, r=1, center = true, $fn=100);
        translate([4,0,0])cylinder (h = 4, r=1, center = true
   , $fn=100);
    translate([0,-1,-2])cube([4,2,4],$fn=100);
}

bottom of page