Difference() {
cylinder(r1=base/2, r2=opening/2+thickness, h=height);
Cylinder(r1=base/2-thickness, r2=opening/2, h=height);
}
Please excuse the formatting and random capitalization. It's my iPhone's fault.
> --
> You received this message because you are subscribed to the Google Groups "MakerBot Operators" group.
> To post to this group, send email to make...@googlegroups.com.
> To unsubscribe from this group, send email to makerbot+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/makerbot?hl=en.
>
> my version of open scad doesnt understand difference
Lower case, "difference()". Not "Difference()". That error
is indicated by OpenSCAD in the log window on the lower,
right hand side.
And it's "cylinder" not "Cylinder()".
Dan
> sorry it was the capitalization
> it does make the cylinder but its not hollow
You need to center the cylinders,
height=25;
opening=4;
thickness=2;
base=20;
difference() {
cylinder(r1=base/2, r2=opening/2+thickness, h=height, center=true);
cylinder(r1=base/2-thickness, r2=opening/2, h=height, center=true);
}
Actually, it also works without centering them now that I think
about it. Are you being sure to render using F6? F5 works as
well, but will probably illustrate the fact that you need to make the
inner cylinder a tad taller so as to deal with some issues
where the surfaces meet. (You should do that regardless of how
you render.) And when you make the inner cyl. a
tad taller, it's easier to center things than to have to translate
the inner one by ½ the height difference.
height=25;
opening=4;
thickness=2;
base=20;
difference() {
cylinder(r1=base/2, r2=opening/2+thickness, h=height, center=true);
cylinder(r1=base/2-thickness, r2=opening/2, h=height+1, center=true);
}
Dan