Close



Page 4 of 4 FirstFirst ... 234
Results 31 to 33 of 33
  1. #31
    Engineer-in-Training
    Join Date
    Jul 2020
    Location
    Monterey Bay, California
    Posts
    368
    Add jamcultur on Thingiverse
    Quote Originally Posted by Griffinmcg View Post
    Yes please do ! I do not have OpenSCAD but I can get it.
    I'll put it here in case anyone else is interested.

    width = 76;
    height = 130;
    draw_one();
    translate([0, 0, (height/2)-0.01])
    rotate([0, 0, 45])
    draw_one();

    module draw_one() {
    hull() {

    cube([width, width, 0.01], center=true);

    translate([0, 0, (height/2)])

    rotate([0, 0, 45])

    cube([width, width, 0.01], center=true);

    }
    }

    When you run it with the OpenSCAD customizer, you'll get a very simple user interface where you can specify the width and height in millimeters.

    customizer.JPG

    Edit: Sorry the code lost its formatting when I uploaded it

  2. #32
    Engineer-in-Training
    Join Date
    Jul 2020
    Location
    Monterey Bay, California
    Posts
    368
    Add jamcultur on Thingiverse
    Here's what the code should look like:

    Griffenmcg2.JPG

  3. #33
    Super Moderator curious aardvark's Avatar
    Join Date
    Jul 2014
    Posts
    8,818
    lol thought someone who wasn't broke would do that.
    Clever way to do it too - way simpler than my method.
    If only i understood geometry :-)

    Added another variable to give you control over the angle of rotation, makes some interesting shapes :-)
    width = 76;
    height = 130;
    ar=100; // angle of rotation

    module draw_one() {
    hull() {
    cube([width, width, 0.01], center=true);
    translate([0, 0, (height/2)]) rotate([0, 0, ar]) cube([width, width, 0.01], center=true);
    }
    }

    draw_one();
    translate([0, 0, (height/2)-0.01]) rotate([0, 0, ar]) draw_one();
    Last edited by curious aardvark; 09-11-2020 at 09:50 AM.

Page 4 of 4 FirstFirst ... 234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •