Extrusie verlengd en plat gelegd

This commit is contained in:
2025-01-05 00:26:09 +01:00
parent a9aaa76ee6
commit cfba0df9e9
2 changed files with 10 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ dmh = depth_multiconnector_hole = 4.15
dbr = depth_big_round = 1.2121
dsr = depth_small_round = 0.4379
db = depth_bevel = 2.5
el = extrusion_length = 10.0
pts = [
(0, 0),
@@ -19,24 +20,25 @@ pts = [
(((wmh+4)/2)-db-2, dmh+2-dsr),
((wmh+4)/2-2, dbr+2),
((wmh+4)/2-2, 2),
(0, 2)
(0, 2),
(0, 0)
]
# Make one basic connector
with BuildPart() as backSlot:
# Make a polyline sketch and revolve it 180 degrees
with BuildSketch() as sk_backSlot:
with BuildLine() as ln_backSlot:
with BuildSketch(Plane.XZ) as sk_backSlot:
with BuildLine(Plane.XZ) as ln_backSlot:
Polyline(pts)
make_face()
revolve(revolution_arc=180.0, axis=Axis.Y)
revolve(revolution_arc=180.0, axis=Axis.Z)
# Add a straight part to it
with BuildSketch() as sk_extrusion:
with BuildLine() as ln_extrusion:
with BuildSketch(Plane.XZ) as sk_extrusion:
with BuildLine(Plane.XZ) as ln_extrusion:
Polyline(pts)
make_face()
mirror(about=Plane.YZ)
extrude(amount = 4)
extrude(amount = el)
export_stl(backSlot.part, "backSlot.stl")
#export_stl(backSlot.part, "backSlot.stl")
show_all()