kennetek / gridfinity-rebuilt-openscad

A ground-up rebuild of the stock gridfinity bins in OpenSCAD
Other
1.14k stars 164 forks source link

utility for curved cuts #134

Closed sgraham closed 8 months ago

sgraham commented 8 months ago

Hi, thank you for building this, it's really nice! (And thank you so much for the note about "fast-csg", I was going crazy waiting.)

I was trying to make a cutlery holder, and I was wondering if it'd be possible to use the existing functionality in bins to cut "nicer" curves when using cut_move().

In particular, instead of my ugly square-edged cube cutouts as below, I was trying to figure out how to round those corners (examples circled in red) to make them match the typical bin curve. (I played with fillet_cutter and some other stuff in utility, but didn't get too far.)

difference()
{
gridfinityInit(4, 5, height(10), 0, 42) {   
    cut(x=0, y=0, w=.9, h=2, t=5, s=0); // big fork
    cut(x=0, y=3, w=.9, h=2, t=5, s=0); // big fork
    cut_move(x=0, y=2, w=.9, h=1)
        cube([12, 50, height(18)], center=true);

    cut(x=.9, y=0, w=1.3, h=2, t=5, s=0); // big spoon
    cut(x=.9, y=3, w=1.3, h=2, t=5, s=0); // big spoon
    cut_move(x=.9, y=2, w=1.3, h=1) 
        cube([12, 50, height(18)], center=true);

    cut(x=2.2, y=0, w=.8, h=2, t=5, s=0); // small fork
    cut(x=2.2, y=2.5, w=.8, h=1.6, t=5, s=0); // small fork
    cut_move(x=2.2, y=1.5, w=.8, h=1) 
        cube([12, 50, height(18)], center=true);

    cut(x=3, y=0, w=1.0, h=2, t=5, s=0); // small spoon
    cut(x=3, y=2.5, w=1.0, h=1.4, t=5, s=0); // small spoon
    cut_move(x=3, y=1.5, w=1.0, h=1) 
        cube([12, 50, height(18)], center=true);
}
translate([-500, -42*2.8925, 28]) cube([1000, 100, 100]);
}
gridfinityBase(4, 5, 42, 0, 0, 1);
corner-cut
Ruudjhuu commented 8 months ago

I think you are suggesting to make a cutter with negative corner fillets. I am not sure how to do this. It will probably result in a whole new cutter type. It is also a very specific usecase. You could give it a try, pull requests are welcome.

sgraham commented 8 months ago

OK, thanks for looking! I didn't figure it out either. :)

mrcpu99 commented 8 months ago

Did you by chance look at the openscad-fillets project on github? Seems like it might do what you need.

https://github.com/ademuri/openscad-fillets

On Fri, Oct 27, 2023 at 6:42 PM Scott Graham @.***> wrote:

OK, thanks for looking! I didn't figure it out either. :)

— Reply to this email directly, view it on GitHub https://github.com/kennetek/gridfinity-rebuilt-openscad/issues/134#issuecomment-1783657029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZT3EJQQTYZ5YEWW22CRC3YBRPH7AVCNFSM6AAAAAA6DGPRN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBTGY2TOMBSHE . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>