where or what, is the hidden volume?
Playing around, trying to get some verification that various components
make a single object, I came up with the following simple test code. If
any or all the comments are removed, it seems to be that when rendered
the volumes are always one more than the actual objects. e.g, two cubes
gives three volumes, glue 'em together, volumes become 2, and so on.
module glue(x,y){
# translate([0,0,-.5]) cube([x,y,2]);
}
module bolt(l,d){
cylinder(h=l,d=d);
}
module lump(){
cube (50);
translate ([0,0,51]) cube(50);
// translate([5,5,50]) glue(40,40);
// translate ([25,25,-5])bolt(120,6);
}
lump();
// translate ([80,0,0]) lump();
The hidden volume is the complement of the model that is the void space
around the model.
Em qua., 22 de set. de 2021 às 13:26, Ray West raywest@raywest.com
escreveu:
where or what, is the hidden volume?
Playing around, trying to get some verification that various components
make a single object, I came up with the following simple test code. If
any or all the comments are removed, it seems to be that when rendered
the volumes are always one more than the actual objects. e.g, two cubes
gives three volumes, glue 'em together, volumes become 2, and so on.
module glue(x,y){
# translate([0,0,-.5]) cube([x,y,2]);
}
module bolt(l,d){
cylinder(h=l,d=d);
}
module lump(){
cube (50);
translate ([0,0,51]) cube(50);
// translate([5,5,50]) glue(40,40);
// translate ([25,25,-5])bolt(120,6);
}
lump();
// translate ([80,0,0]) lump();
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org