Commit 48f61a87 authored by Léo Grange's avatar Léo Grange
Browse files

Initial salad with both OpenSCAD and FreeCAD

parents
Pipeline #327 failed with stages
// le truc chelou pour le panier à salade
$fn = 100;
inner_diameter = 18.4;
inner_height = 19.4;
inner_cylinder_low_diameter = 6;
// 7.9 seems too low again...
hook_diameter_base = 8.3;
//hook_height = 6.2;
hook_height = 5;
hook_z_shift = 1;
hook_cut_size = 1.5;
thickness = 1;
//total_height = 100;
total_height = inner_height + thickness;
// to add a tiny layer on the "cap"
add_layer_printing = true;
//for(a=[0:36:360])
//rotate([0, 0, a]) translate([20, 0, 0]) cylinder(r=10, h=20);
difference() {
cylinder(d=inner_diameter + thickness*2, h=total_height);
translate([0,0,total_height-inner_height]) {
cylinder(d=inner_diameter, h=inner_height+0.01);
}
}
// inner features
translate([0,0,total_height-inner_height]) {
difference() {
union() {
cylinder(d=inner_cylinder_low_diameter, h=inner_height);
translate([0, 0, inner_height-hook_height])
cylinder(d1=hook_diameter_base, d2=inner_cylinder_low_diameter, h=hook_height - hook_z_shift);
}
translate([-1.5/2, -10/2, 0.01]) cube([1.5, 10, inner_height + 0.01]);
}
}
if(add_layer_printing) {
translate([0, 0, total_height - 0.1])
cylinder(d=inner_diameter * 0.7, h=0.1);
}
/*
module truc(num) {
for(a=[0:360/num:360])
rotate([0, 0, a]) translate([20, 0, 0]) cylinder(r=10, h=20);
}
difference() {
truc(5);
truc(3);
}
*/
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment