test-shear.scad 371 B

1234567891011121314151617
  1. // difference() {
  2. // cube([150,30,30]);
  3. // translate([0,5,5]) cube([150,20,30]);
  4. // }
  5. M = [ [ 1, 0, 0, 0 ],
  6. [ 0, 1, 0, 0 ], // The "0.7" is the skew value; pushed along the y axis as z changes.
  7. [ 0.5, 0, 1, 0 ],
  8. [ 0, 0, 0, 1 ] ] ;
  9. multmatrix(M) {
  10. difference() {
  11. cube([150,30,30]);
  12. translate([0,5,5]) cube([150,20,30]);
  13. }
  14. }