Skip to content
Discussion options

You must be logged in to vote

You've got the second attach as a child of the cuboid, not of the cylinder.

Your indentation is right, but the punctuation is wrong so the program structure is not what you think it is.
Here is how the program should be indented to match its actual structure:

    diff()
        cylinder(2,5,5,center = true)
            attach(LEFT,RIGHT,inside=true)
                tag("") cuboid([5,10,2])
                    attach(CENTER,CENTER,inside=true)
                        tag("remove") cylinder(2.1,2.5,2.5,center=true);

What you need is:

    diff()
        cylinder(2,5,5,center = true) {          // added open brace
            attach(LEFT,RIGHT,inside=true)
                tag("") cuboid([5,1…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by NakedMoleRatScientist
Comment options

You must be logged in to vote
1 reply
@jordanbrown0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants