### object count RW
Ray West
Wed, Sep 22, 2021 12:26 PM

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();

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(); RP
Ronaldo Persiano
Wed, Sep 22, 2021 12:43 PM

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();