Welcome to Our Community

Unlock hidden features. Sign Up for Free Today!

v-slot for OpenSCAD

Discussion in 'CAD' started by Franco Ponticelli, Aug 3, 2014.

  1. Franco Ponticelli

    Franco Ponticelli Journeyman
    Builder

    Joined:
    Dec 4, 2013
    Messages:
    63
    Likes Received:
    13
    Since I was not able to find any v-slot for OpenSCAD, I made my own:
    https://github.com/fponticelli/smallbridges

    Right now they are quite high-def and I might add some options later to make them simpler for performances.

    [​IMG]
     
  2. Glenn West

    Glenn West Well-Known
    Builder

    Joined:
    Dec 5, 2013
    Messages:
    22
    Likes Received:
    7
    Nice. What about a cutout version.
    It would make it nicer to build corner components.
     
  3. Franco Ponticelli

    Franco Ponticelli Journeyman
    Builder

    Joined:
    Dec 4, 2013
    Messages:
    63
    Likes Received:
    13
    What do you mean exactly? I am not sure I understand ;)
     
  4. Glenn West

    Glenn West Well-Known
    Builder

    Joined:
    Dec 5, 2013
    Messages:
    22
    Likes Received:
    7
    In building a corner component, or a frame, (In delta we call it a vertex), its handy to "subtract" a vslot
    from the body.

    Example code of something I was doing this morning.
    When you use this, you get more complexity that needed. It results in non printable part.[​IMG]

    include <MCAD/units.scad>;

    include <MCAD/materials.scad>

    use <MCAD/shapes.scad>;

    use <smallbridges/scad/bom.scad>;

    use <smallbridges/scad/vslot.scad>;





    module body()

    {

    cube([50,50,50]);

    }





    module vslot_cutouts(){



    $fn = 32;



    translate([35,35,0]) rotate([0,0,90]) vslot20x20(200);

    translate([15,0,35]) rotate([0,90,90]) vslot20x20(200);

    translate([0,15,15]) rotate([0,90,0]) vslot20x20(200);

    }





    module corner()

    {



    difference(){

    body();

    union() {

    vslot_cutouts();

    }

    }



    }



    corner();
     
  5. Franco Ponticelli

    Franco Ponticelli Journeyman
    Builder

    Joined:
    Dec 4, 2013
    Messages:
    63
    Likes Received:
    13
    Oh I see. I was planning to make a simplified version of it to speed up rendering time but to be honest I just didn't feel the need yet. If I recall correctly commenting out the part that subtract the holes on the corners and the one in the middle should be pretty trivial. Feel free to create a pull request if you find yourself adding interesting features to that file.
     

Share This Page

  • About Us

    The OpenBuilds Team is dedicated helping you to Dream it - Build it - Share it! Collaborate on our forums and be sure to visit the Part Store for all your Building needs!
  • Like us on Facebook

  • Support Open Source FairShare Program!

    OpenBuilds FairShare Give Back Program provide resources to Open Source projects, developers and schools around the world. Invest in your future by helping others develop theirs!

    Donate to FairShare!