Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. //include <Chamfers-for-OpenSCAD/Chamfer.scad>;
  2. //linear_extrude(height=1, center=true)
  3. // import(file= "drawing3.dxf");
  4. include <BOSL/constants.scad>
  5. use <BOSL/transforms.scad>
  6. use <BOSL/math.scad>
  7. use <BOSL/shapes.scad>
  8.  
  9.  
  10. $cross_width = 60;
  11. $cross_height = 400;
  12. $cross_depth = 40;
  13.  
  14. //translate([-27.5, -5, 12]) chamferCube(100, 100, 100, 4);
  15.  
  16. module joiner(size) {
  17. translate([-$cross_width/2, $cross_height/2 + 10, 0]) {
  18. rotate(45, [0, 0, 1]) {
  19. cuboid([$cross_width/2, size, $cross_depth], chamfer=5, center=true);
  20. }
  21. }
  22. translate([$cross_width/2, $cross_height/2 + 10, 0]) {
  23. rotate(-45, [0, 0, 1]) {
  24. cuboid([$cross_width/2, size, $cross_depth], chamfer=5, center=true);
  25. }
  26. }
  27. }
  28.  
  29. union () {
  30. cuboid([$cross_width, $cross_height, $cross_depth], chamfer=5, center=true);
  31. translate([0, 0, 0]) {
  32. rotate(90, [0, 0, 1]) {
  33. cuboid([$cross_width, $cross_height, $cross_depth], chamfer=5, center=true);
  34. }
  35. }
  36. $joiner_size = 150;
  37. joiner($joiner_size);
  38. yflip() {
  39. joiner($joiner_size);
  40. }
  41. rotate(90, [0, 0, 1]) {
  42. joiner($joiner_size);
  43. yflip() {
  44. joiner($joiner_size);
  45. }
  46. }
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement