// Precision Quadratic object clamp for MendelMax // Author: Alexander Rössler // License: Creative Commons /** * @id quadratic-object-clamp * @name Quadratic object clamp for MendelMax * @category Printed * @using 2 m5x20 * @using 2 washer */ // Clamp for holding objects nutdiameter=5; clampWidth=25; clampDepth=20; lascheWidth=25; clampHeight=12; thickness=3; radius=1.4; difference() { union() { difference() { roundCube(clampWidth+thickness*2,clampDepth+thickness,clampHeight,radius); translate([thickness,-1,-1]) roundCube(clampWidth,clampDepth,clampHeight+2,radius); } translate([clampWidth+thickness,clampDepth-1,0]) roundCube(thickness,lascheWidth,clampHeight,radius); } translate([clampWidth-thickness,clampDepth+lascheWidth/2,clampHeight/2+radius/2]) rotate([0,90,0]) cylinder(r=nutdiameter/2,h=clampWidth); } module roundCube(x,y,z,r) minkowski() { translate([r,r,0]) cube([x-r*2,y-r*2,z]); cylinder(r=r,$fn=12); }