kleine aanpassingen
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user