restyle code

This commit is contained in:
2026-05-07 14:53:47 +02:00
parent 2074bd832e
commit 961793c975
8 changed files with 59 additions and 67 deletions

View File

@@ -1,19 +1,19 @@
include <BOSL2/std.scad>
boxHelper(45, 53, "Reaper", "Zyklop", "Megaslime");
translate([ 88.5, 39, 0 ]) zrot(180, cp=[0, 0, 0]) boxHelper(45, 53, "Drache", "Medusa", "Träumer");
boxHelper(45, 43.5, 53, "Reaper", "Zyklop", "Megaslime");
translate([ 88.5, 43.5, 0 ]) zrot(180, cp=[0, 0, 0]) boxHelper(45, 43.5, 53, "Drache", "Medusa", "Träumer");
module boxHelper(x, z, frontName, middleName, backName) {
module boxHelper(x, y, z, frontName, middleName, backName) {
difference() {
cube([ x, 39, z ], false);
translate([ 1.5, 1.5, 1.5 ]) cube([ x - 3, 36, z - 1 ], false);
cube([ x, y, z ], false);
translate([ 1.5, 1.5, 1.5 ]) cube([ x - 3, y - 3, z - 1 ], false);
// windows
window(x / 2, 39, z, "Schleim", "Reaper");
window(x / 2, y, z, "Schleim", "Reaper");
// floor
xInner = x - 10;
yInner = 39 - 10;
yInner = y - 10;
if (xInner >= 6 && yInner >= 6) {
xSpace = 5 + (((xInner + 2) % 8) / 2);
@@ -34,12 +34,12 @@ module boxHelper(x, z, frontName, middleName, backName) {
difference() {
union() {
translate([ 0, 12.5, 0 ]) cube([ x, 1.5, z ], false);
translate([ 0, 25, 0 ]) cube([ x, 1.5, z ], false);
translate([ 0, 14, 0 ]) cube([ x, 1.5, z ], false);
translate([ 0, 28, 0 ]) cube([ x, 1.5, z ], false);
}
windowHelper(x / 2, 12.5, z, "");
windowHelper(x / 2, 25, z, "");
windowHelper(x / 2, 14, z, "");
windowHelper(x / 2, 28, z, "");
}
}