bmsleight / lasercut

Module for openscad, allowing 3d models to be created from 2d lasercut parts
BSD 2-Clause "Simplified" License
320 stars 55 forks source link

Update lasercut.scad #39

Closed The009 closed 1 year ago

The009 commented 1 year ago

Fix the finger joints to not extend into the model.

The009 commented 1 year ago

pull39

bmsleight commented 1 year ago

Just back from holiday .... will look as soon. Thanks.

bmsleight commented 1 year ago

I would like the openscad command used to for the image attached, so can understand better the bug. Thanks for the help.

The009 commented 1 year ago

I would like the openscad command used to for the image attached, so can understand better the bug. Thanks for the help.

include <lasercut.scad>; 

thickness = 19.05;
length = 101.6;
width = 101.6;

module platform(){
lasercutoutSquare(thickness, length, width,
    finger_joints=[
            [UP, 1, 4],
            [DOWN, 0, 4],
            [LEFT, 0,4],
        ]
    );
};

module sideWall(){
    points = [[0,0], [length,0], [length,0], [0,length], [length,length/2], [0,length], [0,0]];
    color("BLUE",0.75)
    lasercutout(thickness, points,
        finger_joints=[
            [DOWN, 0, 4],
            [LEFT, 0,4],
        ],
        //Add a simple tab to cover the back corner and add a very little bit to remove the line generaged in svg (BUG?)
        simple_tabs=[[DOWN, -thickness/2 +.00001, 0]]
    );
};

platform();

translate([0,0,0]) rotate([90,90,0]) sideWall();
translate([0,width+thickness,0]) rotate([90,90,0]) sideWall();
bmsleight commented 1 year ago

Sorry took me a while! Thanks.