mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-30 22:49:59 +02:00
change is_closed_path to are_ends_equal
sphere bugfix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user