module RoundCorner_selector(ci, adj) {
ROUNDCORNER_VARS;
- cube(bigr*2 + adj, center=true);
+ INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
+ cube(bigr*2 + adj, center=true);
+ }
}
module RoundCornerCut(ci) {
// ci should be [this_cnr, right_cnr, left_cnr]
// where right_cnr is to the right (ie, anticlockwise)
ROUNDCORNER_VARS;
- INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
- difference(){
- RoundCorner_selector(ci, -0.1);
+ difference(){
+ RoundCorner_selector(ci, -0.1);
+ INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
translate([bigr, bigr, 0])
cylinder(center=true, h=20, r= bigr);
}
module RoundCornerAdd(ci) {
ROUNDCORNER_VARS;
- INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
- intersection(){
- RoundCorner_selector(ci, +0.1);
+ intersection(){
+ RoundCorner_selector(ci, +0.1);
+ INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
translate([bigr, bigr, 0])
rotate_extrude(convexity=10, $fn=50)
translate([bigr, 0])