kleine aanpassingen

This commit is contained in:
2025-11-05 19:39:22 +01:00
parent 5091cc23a4
commit afcd0b16e9
6 changed files with 144 additions and 21 deletions

View File

@@ -48,13 +48,20 @@ def one_clip():
# Generate a raster of clips
with BuildPart() as raster:
last_clip = None
for i in range(number_clips_horizontal):
for j in range(number_clips_vertical):
clip = one_clip()
# Put the clips on the right locations
with Locations((i * hdhh, j * hdhh, 0)):
add(clip)
with BuildSketch(Plane.XY.rotated((90, 0, 0))) as sk_backSlot:
with GridLocations(x_spacing = hdhh, y_spacing = hdhh, x_count = number_clips_horizontal, y_count = number_clips_vertical):
# Make a polyline sketch and revolve it 180 degrees
with BuildLine() as ln_backSlot:
Polyline(pts)
make_face()
revolve(revolution_arc=180.0, axis=Axis.Z)
# Add a straight part to it
with BuildSketch(Plane.XZ) as sk_extrusion:
with BuildLine(Plane.XZ) as ln_extrusion:
Polyline(pts)
make_face()
mirror(about=Plane.YZ)
extrude(amount = el)
#export_stl(backSlot.part, "backSlot.stl")
show_all()