BlowgunDart.scad 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. $fn=100;
  2. cylDia=5;
  3. cylHeight=9;
  4. cylSolidPart=3;
  5. coneDia1=16;
  6. coneDia2=cylDia;
  7. coneHeight=15;
  8. coneWall=0.5;
  9. dartDia=2.0;
  10. meltClearence=0.2;
  11. //////////////////////////////////////////////////////////////////////////////////////////////
  12. // main
  13. union()
  14. {
  15. makeCone();
  16. makeCylinder();
  17. }
  18. //////////////////////////////////////////////////////////////////////////////////////////////
  19. // make cone that catches the air
  20. module makeCone()
  21. {
  22. translate([0,0,coneHeight/2])
  23. difference()
  24. {
  25. cylinder(h=coneHeight, r1=coneDia1/2, r2=coneDia2/2, center=true);
  26. cylinder(h=coneHeight+0.2, r1=(coneDia1/2-coneWall), r2=(coneDia2/2-coneWall), center=true);
  27. }
  28. }
  29. //////////////////////////////////////////////////////////////////////////////////////////////
  30. // make cylinder that holds the dart
  31. module makeCylinder()
  32. {
  33. translate([0,0,coneHeight+cylHeight/2-0.1])
  34. difference()
  35. {
  36. cylinder(h=cylHeight, r1=cylDia/2, r2=cylDia/2, center=true);
  37. translate([0,0,(cylHeight-cylSolidPart)/2+0.1])
  38. cylinder(h=cylHeight-cylSolidPart, r1=dartDia/2-meltClearence, r2=dartDia/2, center=true);
  39. }
  40. }