Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in handling of child(0) in nested modules (i think) #32

Closed
hariseldon78 opened this issue Oct 30, 2011 · 2 comments
Closed

bug in handling of child(0) in nested modules (i think) #32

hariseldon78 opened this issue Oct 30, 2011 · 2 comments

Comments

@hariseldon78
Copy link

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?

@kintel
Copy link
Member

kintel commented Oct 31, 2011

Sorry, nested modules are not supported in OpenSCAD for the time being. It's been requested multiple times, but haven't been pushed to the top of the list yet.

@kintel
Copy link
Member

kintel commented May 14, 2013

This has been fixed in #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants