change is_closed_path to are_ends_equal

sphere bugfix
This commit is contained in:
Adrian Mariano
2023-01-19 20:39:05 -05:00
parent 0568e2ef46
commit 8bd08bd4c1
6 changed files with 38 additions and 28 deletions

View File

@@ -94,28 +94,28 @@ module test_cyl() {
$fn=12;
shape_compare() {
cyl(r=50,l=10,circum=true,anchor=BOTTOM);
cylinder(r=50/cos(180/12),l=10);
cylinder(r=50/cos(180/12),h=10);
}
shape_compare() {
cyl(r=50,l=10,circum=false,anchor=BOTTOM);
cylinder(r=50,l=10);
cylinder(r=50,h=10);
}
shape_compare() {
cyl(r=50,l=10,chamfer=1,circum=true,anchor=BOTTOM);
union() {
r=50/cos(180/12);
cylinder(r1=r-1,r2=r,l=1);
up(1) cylinder(r=r,l=8);
up(9) cylinder(r1=r,r2=r-1,l=1);
cylinder(r1=r-1,r2=r,h=1);
up(1) cylinder(r=r,h=8);
up(9) cylinder(r1=r,r2=r-1,h=1);
}
}
shape_compare() {
cyl(r=50,l=10,chamfer=1,circum=false,anchor=BOTTOM);
union() {
r=50;
cylinder(r1=r-1,r2=r,l=1);
up(1) cylinder(r=r,l=8);
up(9) cylinder(r1=r,r2=r-1,l=1);
cylinder(r1=r-1,r2=r,h=1);
up(1) cylinder(r=r,h=8);
up(9) cylinder(r1=r,r2=r-1,h=1);
}
}
}