first commit
This commit is contained in:
commit
a550058f81
|
|
@ -0,0 +1,36 @@
|
||||||
|
from build123d import *
|
||||||
|
|
||||||
|
thickness = 3 * MM
|
||||||
|
width = 25 * MM
|
||||||
|
length = 50 * MM
|
||||||
|
height = 25 * MM
|
||||||
|
hole_diameter = 5 * MM
|
||||||
|
bend_radius = 5 * MM
|
||||||
|
fillet_radius = 2 * MM
|
||||||
|
|
||||||
|
|
||||||
|
with BuildPart() as bracket:
|
||||||
|
with BuildSketch() as s2:
|
||||||
|
with BuildLine() as p1:
|
||||||
|
FilletPolyline((0, 0), (25, 0), (25, 25), radius=5)
|
||||||
|
offset(amount=2, side=Side.LEFT)
|
||||||
|
make_face()
|
||||||
|
mirror(about=Plane.YZ)
|
||||||
|
extrude(amount=25 / 2)
|
||||||
|
mirror(about=Plane.XY)
|
||||||
|
corners = bracket.edges().filter_by(Axis.X).group_by(Axis.Y)[-1]
|
||||||
|
fillet(corners, 2)
|
||||||
|
prawa = bracket.faces().sort_by(Axis.X)[-1]
|
||||||
|
przod = bracket.faces().sort_by(Axis.Y)[0]
|
||||||
|
with Locations(prawa):
|
||||||
|
Hole(5 / 2)
|
||||||
|
with BuildSketch(przod):
|
||||||
|
SlotOverall(20, 5)
|
||||||
|
test = extrude(amount=-3, mode=Mode.SUBTRACT)
|
||||||
|
|
||||||
|
# show_object(s1.sketch)
|
||||||
|
show_object(bracket)
|
||||||
|
# debug(corners)
|
||||||
|
# debug(prawa)
|
||||||
|
# debug(przod)
|
||||||
|
# debug(test)
|
||||||
Loading…
Reference in New Issue