kleine update
This commit is contained in:
@@ -1,19 +1,32 @@
|
||||
from ocp_vscode import *
|
||||
from build123 import *
|
||||
from build123d import *
|
||||
|
||||
set_port(3939)
|
||||
|
||||
l = 31
|
||||
b = 29
|
||||
h = 58
|
||||
l = 32
|
||||
b = 30
|
||||
h = 60
|
||||
filletRad = 3
|
||||
wanddikte = 1.2
|
||||
|
||||
with BuildPart() as box:
|
||||
with BuildSketch() as bodem:
|
||||
Rectangle(l+2.4, b+2.4)
|
||||
fillet(bodem.vertices(), radius=10)
|
||||
extrude(amount=4)
|
||||
fillet(bodem.vertices(), radius=filletRad)
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
||||
show_all()
|
||||
export_stl(box.part, "box.stl")
|
||||
show(box)
|
||||
|
||||
Reference in New Issue
Block a user