utility for curved cuts
sgraham opened this issue · comments
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](https://private-user-images.githubusercontent.com/1822/275715742-662636ee-3ea2-4064-8ef9-2d6cc0179b56.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyODI5NzgsIm5iZiI6MTcxOTI4MjY3OCwicGF0aCI6Ii8xODIyLzI3NTcxNTc0Mi02NjI2MzZlZS0zZWEyLTQwNjQtOGVmOS0yZDZjYzAxNzliNTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjVUMDIzMTE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDI5ZjJhNDU4YTkxMGQyMDAzMWM5ZDAxZDQ0ZDRjZDAzNmQwNmJkMDc0MzJkOThlYjE0NTM2MzJmNGI0ZjAwOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9XLe3LBp8tFMTXEGLkl5c9n6ndDgIrESRcx067VqRYY)
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.
OK, thanks for looking! I didn't figure it out either. :)