openscad/openscad — Issue #32: bug in handling of child(0) in nested modules (i think)
Author: hariseldon78
Created: 2011-10-30 03:20:48+00:00
State: open

Hi. I come across this bug:

if i write

module tubify(k=0.1) {
difference() {
child(0);
scale(1.0-j) child(0);
}
}

tubify() cube([5,5,5],center=true);

i get correctly a cube with a cubic hole inside. But if i write

module internal(j=0.1) {
scale(1.0-j) child(0);
}

module tubify(k=0.1) {
difference() {
child(0);
internal(k) child(0);
}
}

tubify() cube([5,5,5],center=true);

i only get a full cube. Why is that behaviour?