MCAD_old icon indicating copy to clipboard operation
MCAD_old copied to clipboard

shapes.scad module equiTriangle() bug

Open MichaelAtOz opened this issue 11 years ago • 0 comments

Sorry I don't know how to drive GitHub for code changes.

Currently it doesn't cut a clean triangle, the module needs to be

module equiTriangle(side, height) {
  difference() {
    translate([-side/2,side/2,0]) cube([side, side, height], true);
    rotate([0,0,30]) dislocateBox(side, side*2, height*1.1);
    translate([-side,0,0]) {
      rotate([0,0,60]) dislocateBox(side*2, side, height*1.1);
    }
  }
}

changes are 4th line _2 is on second 'side' not first & height_1.1 6th line height*1.1

Height changes are to produce a clean F5 preview.

MichaelAtOz avatar Sep 02 '13 23:09 MichaelAtOz