Skip to content

Why do some of my parts vanish when tweaking numbers elsewhere? #131

Answered by raydeleu
DanTup asked this question in Q&A
Discussion options

You must be logged in to vote

I performed some experiments with your code. Indeed some strange things happen. Consider the following code:

// input variables
let r = 6;      // radius of rounded cylinder
let h = 9;      // height of rounded cylinder
let d = 4;      // shift between the three cylinders
let t1 = 40;    // lateral shift in y-direction of shapes created directly
let t2 = 2;     // lateral shift in y-direction of shapes created from function

// let pil = Union([
//         Cylinder(r, h, false),
//         Translate([0, 0, h], Sphere(r)),
//         Translate([0, 0, 0], Sphere(r)),
//     ]);

let pil = RoundedEndCylinder(r,h);

let pil1 = Rotate([0,1,0],-20,Translate([d,t1,0],pil,true));
let pil2 = Rotate([

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DanTup
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