kleine update

This commit is contained in:
2025-11-13 21:28:08 +01:00
parent afcd0b16e9
commit c18ab45dd6

View File

@@ -1,19 +1,32 @@
from ocp_vscode import * from ocp_vscode import *
from build123 import * from build123d import *
set_port(3939) set_port(3939)
l = 31 l = 32
b = 29 b = 30
h = 58 h = 60
filletRad = 3
wanddikte = 1.2
with BuildPart() as box: with BuildPart() as box:
with BuildSketch() as bodem: with BuildSketch() as bodem:
Rectangle(l+2.4, b+2.4) Rectangle(l+2.4, b+2.4)
fillet(bodem.vertices(), radius=10) fillet(bodem.vertices(), radius=filletRad)
extrude(amount=4) extrude(amount=wanddikte)
fillet(box.edges().group_by(Axis.Z)[0], radius=1.0)
with BuildSketch(box.faces().sort_by(Axis.Z)[-1]) as zijwand:
perimeter = Rectangle(l+2.4, b+2.4)
offset(
perimeter,
-wanddikte,
kind = Kind.INTERSECTION,
mode = Mode.SUBTRACT,
)
fillet(zijwand.vertices(), radius=filletRad)
extrude(amount=h)
export_stl(box.part, "box.stl")
show_all() show(box)