OpenSCAD - Project Enclosure - Create round corners with Minkowski Sum

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2017
  • Using OpenSCAD I show you how to create a basic project enclosure. I utilize the Minkowski Sum function.
    I demonstrate using the function with a cube and a sphere, and also with a square and a circle.

ความคิดเห็น • 35

  • @liamthompson9342
    @liamthompson9342 2 หลายเดือนก่อน

    This is exactly what I wanted to learn how to do, thank you

  • @fastbike9845
    @fastbike9845 7 หลายเดือนก่อน

    Thanks for the clear step-by-step walk through, very helpful.

  • @shakejones
    @shakejones 4 หลายเดือนก่อน +1

    Great video+explanation+presentation! Thank you SO MUCH for sharing your knowledge! Well done mate 🙏🏻

  • @SpudMeisterchen
    @SpudMeisterchen 2 ปีที่แล้ว +6

    Thank you. great vid. It really has helped me. Some people were looking for the code so I transcribed it
    the code:
    $fn = 50;
    difference () {
    minkowski(){
    cube([10,20,10],center = true);
    sphere(1);
    }
    // chopp off top
    translate([0,0,5]) cube([19,29,10],center = true);
    // cut out ledge
    translate([0,0,-1]){
    linear_extrude(10) {
    minkowski(){
    square([9,19],center = true);
    circle(1);
    }
    }
    }
    // hollow inside
    translate([0,0,0]){
    minkowski(){
    cube([8,18,8], center = true);
    sphere(1);
    }
    }
    // translate ([0,0,5]) cube(19,29,10],center = true);
    }

  • @jetblackstar
    @jetblackstar 2 ปีที่แล้ว

    I am unable to give this a second Like. So I'm leaving this comment. As I come back to it for a reference of minkowski() function and making a similar but different "tray" in about 10 mins in OpenSCAD.
    Got from idea to printer starting in about 20 mins total.
    You rock and thank you.

  • @vizionthing
    @vizionthing 7 ปีที่แล้ว +13

    Someone mentioned openscad in a video I am watching (Thomas Sanladerer's Prusa i3 Mk2 clone live), I have many years experience in both programming and 3D modeling via max and blender - I downloaded openscad and followed this and have to say I am instantly hooked, thanks for posting.

  • @alexandermaverick9474
    @alexandermaverick9474 2 ปีที่แล้ว +4

    The way I understand the Minkowski Sum is that basically the first shape is a region of points, and the process takes the origin of the second shape and just moves it all around. Like drawing in a shape as a kid, the Sum draws in every possible origin point for the second shape, and adds them all together. I'm sure the math behind is much more fun, and is crazy optimized in order to work so nicely, but that's a side story :))

  • @steveharvey6727
    @steveharvey6727 7 ปีที่แล้ว +2

    Nice work Paul - great explanation of Minkowski - thanks for sharing!

  • @Appregator
    @Appregator 4 ปีที่แล้ว +3

    Brilliant teacher, much appreciated !

  • @cpfs50
    @cpfs50 7 ปีที่แล้ว +2

    Thank you very much Paul, I just came across this by chance, absolutely brilliant, just what I was looking for. I hope you've done some more as you said you would. I've never done any 3d modelling before but find openscad addictive! (oops, just noticed part 2 - the lid - great!)

  • @kevinbowker2385
    @kevinbowker2385 ปีที่แล้ว

    Thanks for sharing your knowledge on this. Very informative!

  • @LPNeogetz
    @LPNeogetz 4 ปีที่แล้ว +3

    Thanks so much. my little case is coming together nicely now i understand this.

  • @samkear
    @samkear 6 ปีที่แล้ว +2

    Thanks, very helpful!

  • @earthlightsmusic2743
    @earthlightsmusic2743 2 ปีที่แล้ว

    Well thought-out. I tend to use hulls, which means I have to loop the second shape to be added in four or eight places. I'll revisit the Minkowski() .

  • @clarkso65
    @clarkso65 6 ปีที่แล้ว +1

    Thats a big help, Thanks!

  • @rayerdinc2441
    @rayerdinc2441 ปีที่แล้ว +1

    Thank you for the video, cool. Liked and subscribed!

  • @robertpersson3736
    @robertpersson3736 6 ปีที่แล้ว +2

    Thank's for sharing this, I've just designed an electronics box for my tricopter in scad. I'ts much nicer with rounded edges.

  • @alokdeep165
    @alokdeep165 6 ปีที่แล้ว +1

    nice explained sir....

  • @harrypehkonen
    @harrypehkonen 2 ปีที่แล้ว

    Thank you for explaining what Minkowski does! I wonder if I can use it to make router templates.

  • @masteronone2079
    @masteronone2079 2 ปีที่แล้ว

    Very helpful, thanks.
    Quite an achievment, taking something devised by a man who could say Einstein was "A lazy dog' who 'never bothered about mathematics at all', with a straight face and explain how to make use of it to me.

  • @amatulic4229
    @amatulic4229 4 ปีที่แล้ว +5

    The hull() function is useful too, and seems to be more efficient than Minkowski for some things. hull() around 4 cylinders arranged in a rectangle gives you a rounded rectangle. The last step in the video could have been done that way, instead of using Minkowski, when cutting out the lip of the box.

    • @mathcodeprint
      @mathcodeprint  4 ปีที่แล้ว

      Definately ! when I made this I had just struggled through minkowski. I'll have to do another with Jill. Thanks for comments. :)

  • @tobiasrabelink7733
    @tobiasrabelink7733 6 ปีที่แล้ว +1

    Paul Randall
    please can you make a video of how design a siren i do not know how to do that a siren rotor and stator

  • @omarhadeed8248
    @omarhadeed8248 5 ปีที่แล้ว +3

    Thank you for the great tutorial. So here's what I've come across while doing this on the latest version of OpenSCAD (2015.3). Difference() function will not work after hitting (F5), instead, you would have to hit (F6) or render to get the object chopped off properly. I wonder why that is.

    • @mathcodeprint
      @mathcodeprint  5 ปีที่แล้ว +2

      I have run into that problem as well. I really haven't determined the problem. Often restarting the program, changing the view style or even closing and re-opening the render window fixed it for me.

  • @helmanfrow
    @helmanfrow 2 ปีที่แล้ว +1

    How would you scale the box's inner radius down to keep the wall thickness the same around the perimeter?

    • @alexandermaverick9474
      @alexandermaverick9474 2 ปีที่แล้ว +3

      the math for that is a bit fuzzy, but I ended up with a decent solution: instead of making the box smaller, keep the box the same size and decrease the radius of the sphere. This should keep the perimeter constant all around. And keep in mind to have the original boxes aligned. Hope this helps!

  • @usertogo
    @usertogo 4 ปีที่แล้ว +3

    could you put the code for this demo in the video description?

    • @mathcodeprint
      @mathcodeprint  4 ปีที่แล้ว +1

      I will try, it was along time ago so I will have to hunt it down or recreate.

    • @usertogo
      @usertogo 4 ปีที่แล้ว

      @@mathcodeprint yes would be nice, I was completely unaware of the existence of the Minkowsky function, any minimal code snippet would be enough, or a link to some demo somewhere...

  • @yannickcotten2854
    @yannickcotten2854 7 ปีที่แล้ว +1

    It's nice to add some indents between the brackets but it would have been better to do it all along the video, not just at the end.

  • @amitliber75
    @amitliber75 4 ปีที่แล้ว +1

    Great video for understing minkwoski. Thank!
    But why the chewing gum?

    • @mathcodeprint
      @mathcodeprint  4 ปีที่แล้ว

      Well it's not chewing gum because I don't chew gum. Soooo I am just gonna blame a bad microphone?

  • @deusprogrammer_thekingofspace
    @deusprogrammer_thekingofspace 4 หลายเดือนก่อน

    Loved this tutorial! But...the lack of indention and consistency of white space during the presentation was driving me nuts ;_;. That's my problem though, not yours.

  • @mba2ceo
    @mba2ceo 3 ปีที่แล้ว +1

    update plz