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