/* This is a clip use to attach a garage door remote to a car sun blocker */ use <../cadlib.h> // allviews clip11 clip10 clip9 include width=10; lenbase=40; thick=0.5; module endround(ray){ translate([0,ray,0]) 3darc (ray,4,width,90-5,270,20); } module base(){ cube([lenbase,thick,width]); translate([0,thick,1]) cube([lenbase,2,width-2]); } module top(ray){ translate([0,ray*2-4,0]) rotate(a=-5){ cube([lenbase,4,width]); arc=25; translate([lenbase,30,0]) 3darc(30,4,width,270,270+arc); } } // A slim surface at the base to help the design to stick module extrabase(){ translate([0,-3,0]) cube([lenbase,3,0.25]); } module clip(ray){ endround(ray); top(ray); base(); extrabase(); } module main_view(view){ if (view=="clip9"){ clip(9); }else if (view=="clip10"){ clip(10); }else if (view=="clip11"){ clip(11); } }