ImplicitCAD

Examples!



linear_extrude (height = 30, twist = 180, center=true, r=2)
  union (r=2) {
    square([4,20], center=true, r=2);
    square([20,4], center=true, r=2);
  }
Try this code!



linear_extrude (height = 40, twist(h) = 90*cos(h*2*pi/40), center=true)
  difference () {
    shell(2) circle (10);
    translate ([-10,0]) square([20,8], center=true);
  }
Try this code!



linear_extrude(height(x,y) = 10 + 5*cos(x) + 5*cos(y) )
    circle(10);
Try this code!



union() {
  cylinder(r=19, h=10, $fn=6, center=true);
  cylinder(r=10, h=40);
  rotate_extrude(4*360, translate=[0,38])
    translate ([10,0]) square([8,4], center=true);
}
Try this code!