124 lines
No EOL
3.2 KiB
OpenSCAD
124 lines
No EOL
3.2 KiB
OpenSCAD
include <../lasercut-master/lasercut.scad>;
|
|
|
|
$fn=60;
|
|
thickness = 3.1;
|
|
x = 50;
|
|
y = 50;
|
|
|
|
//1x Boden
|
|
//2x Wand 1
|
|
//3x Wand 2
|
|
//2x Wand 3
|
|
//1x Wand 4
|
|
//2x Dach 1
|
|
//2x Dach 2
|
|
//1x Dach 3
|
|
//1x Dach 4
|
|
|
|
difference() {
|
|
translate ([-10,-10,-4])lasercutoutSquare(thickness=3.1, x=200, y=200);
|
|
//Hauswand 1
|
|
rotate([90,0,90])union() {
|
|
points1 = [[0,0], [x,0], [x,y] , [0,y]];
|
|
translate ([4,0,0])lasercutout(thickness=thickness, points = points1,
|
|
bumpy_finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 4]
|
|
]
|
|
);
|
|
points2 = [[0,0], [x,0], [x/2,0.6*y]];
|
|
translate ([4,50,0])lasercutout(thickness=thickness, points = points2
|
|
);
|
|
};
|
|
|
|
//Hauswand 2
|
|
rotate([90,0,0])translate ([4,0,-58])lasercutoutSquare(thickness=thickness, x=x, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 4]
|
|
]
|
|
);
|
|
|
|
//Hauswand 3
|
|
rotate([90,0,180])translate([-154,0,0])lasercutoutSquare(thickness=thickness, x=150, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 12]
|
|
]
|
|
);
|
|
//Hauswand 4 - Schirm.wand
|
|
rotate([90,0,70])translate([74,0,30])lasercutoutSquare(thickness=thickness, x=25, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 2]
|
|
]
|
|
);
|
|
|
|
rotate([0,0,-44])translate([-67,161,0])
|
|
|
|
union(){ //2. seite des Hauses
|
|
rotate([90,0,90])union() {
|
|
points1 = [[0,0], [x,0], [x,y] , [0,y]];
|
|
translate ([-54,0,0])lasercutout(thickness=thickness, points = points1,
|
|
bumpy_finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 4]
|
|
]
|
|
);
|
|
points2 = [[0,0], [x,0], [x/2,0.6*y]];
|
|
translate ([-54,50,0])lasercutout(thickness=thickness, points = points2
|
|
);
|
|
};
|
|
//Hauswand 2
|
|
rotate([90,0,180])translate ([-54,0,-58])lasercutoutSquare(thickness=thickness, x=x, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 4]
|
|
]
|
|
);
|
|
//Hauswand 3
|
|
rotate([90,0,0])translate([4,0,0])lasercutoutSquare(thickness=thickness, x=150, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 12]
|
|
]
|
|
);
|
|
}
|
|
//Hauswand 2 - Eingang
|
|
rotate([90,0,70-180])translate ([-107,0,-148])lasercutoutSquare(thickness=thickness, x=x, y=y,
|
|
finger_joints=[
|
|
[LEFT, 1, 4],
|
|
[RIGHT, 1, 4],
|
|
[DOWN, 1, 4]
|
|
]
|
|
);
|
|
}
|
|
|
|
|
|
/*
|
|
//Dach1
|
|
points3 = [[0,0], [50,50*0.75], [150,50*0.75], [150,0]];
|
|
translate ([250,100,0])lasercutout(thickness=thickness, points = points3
|
|
);
|
|
|
|
//Dach2
|
|
points4 = [[0,0], [-50,50*0.75], [50,50*0.75], [50,0]];
|
|
translate ([500,100,0])lasercutout(thickness=thickness, points = points4
|
|
);
|
|
//Dach3
|
|
points5 = [[0,0], [7,64], [56-7,64], [56,0]];
|
|
translate ([250,200,0])lasercutout(thickness=thickness, points = points5
|
|
);
|
|
|
|
//Dach4
|
|
points6 = [[0,0], [-7,64], [25+7,64], [25,0]];
|
|
translate ([400,200,0])lasercutout(thickness=thickness, points = points6
|
|
);
|
|
*/ |