Open
Description
Hello,
I'm not sure whether the behavior is expected or not. But for me it was a bit of a surprise: If I do a hull on two objects with holes, the result is a hull of the object minus a hull of the holes. To make it more clear: Here is an example:
#!/usr/bin/env python3
from solid import *
from solid.utils import *
c = cylinder(r=10) - hole()(cylinder(r=5))
x = hull()(c, left(10)(c))
print(scad_render(x))
This generates one long hole:
difference(){
hull() {
difference() {
cylinder(r = 10);
}
translate(v = [-10, 0, 0]) {
difference() {
cylinder(r = 10);
}
}
}
/* Holes Below*/
hull(){
union(){
cylinder(r = 5);
}
translate(v = [-10, 0, 0]){
union(){
cylinder(r = 5);
}
}
} /* End Holes */
}
I would have expected two round holes:
difference(){
hull() {
difference() {
cylinder(r = 10);
}
translate(v = [-10, 0, 0]) {
difference() {
cylinder(r = 10);
}
}
}
/* Holes Below*/
union(){
cylinder(r = 5);
}
translate(v = [-10, 0, 0]){
union(){
cylinder(r = 5);
}
} /* End Holes */
}
Is that expected behavior?
Metadata
Metadata
Assignees
Labels
No labels