Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapes.scad module equiTriangle() bug #15

Open
MichaelAtOz opened this issue Sep 2, 2013 · 0 comments
Open

shapes.scad module equiTriangle() bug #15

MichaelAtOz opened this issue Sep 2, 2013 · 0 comments

Comments

@MichaelAtOz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant