-module Computer(){
- multmatrix([[1,0,0,0],
- [0,1, tan(90-comp_slope), 0],
- [0,0,1,0],
- [0,0,0,1]])
- translate([-comp_dx - comp_xsz/2, -cover_ysz + comp_dy, -50])
- cube([comp_xsz, 100, comp_zsz + 50]);
-}
-
-module Tube(){
- translate([attach_cx, -attach_cdy, -tube_dia/2 - 0.1 - attach_dz]) {
- rotate_extrude(convexity=10) {
- translate([attach_inrad + tube_dia/2, 0])
- circle(r=tube_dia/2);
- }
- }
-}
-
-module Bolt(){
- translate([0,0,-50]) linear_extrude(height=80) {
- circle(r=attach_hole_dia/2, $fn=20);
- }
- translate([0,0,rightend_thick]) linear_extrude(height=80) {
- circle(r=attach_hole_dia/2 * 2, $fn=20);
- }
-}
-
-module Bolts(){
- translate([attach_cx, -attach_cdy]) rotate([0,0,-attach_ang]) {
- translate([attach_inrad - attach_hole_dist - attach_hole_dia/2, 0])
- Bolt();
- translate([attach_inrad + tube_dia
- +attach_hole_dist + attach_hole_dia/2, 0])
- Bolt();
- }
-}
-
-module Demo(){
- Cutouts();
- %BodyPositive();
-}
-
-//Demo();
-Body();