modules.scad
589 Bytes
include<vars.scad>
module materialDot(radius, height, roundness) {
roundness = roundness >= height/2 ? height/2-0.000001 : roundness;
translate([0,0, roundness]) minkowski() {
linear_extrude( height = height-roundness*2
, convexity = 10
, twist = 0 )
circle( r=radius-roundness);
sphere(r=roundness);
}
}
module shapeZ(x,y,z) {
translate([0,0,-25]) minkowski() {
cube([
x-(offset)*2,
y-(offset)*2,
1
]);
cylinder(
r=offset,
h=50
);
}
}