printbare bestanden gemaakt
This commit is contained in:
@@ -11,7 +11,7 @@ wbs = width_board_side = 15.0
|
||||
ttc = thickness_total_connector = 4.0
|
||||
cw = clamp_width = 9.8
|
||||
rc = rotation_clamp = 45.0
|
||||
dc = depth_clamp = 8.0
|
||||
dc = depth_clamp = 4.0
|
||||
|
||||
with BuildPart() as connector:
|
||||
with BuildSketch() as connector_sk:
|
||||
@@ -24,13 +24,34 @@ with BuildPart() as connector:
|
||||
extrude(amount = ttc-teub)
|
||||
chamfer(connector.edges().group_by(Axis.Z)[-1], length = tb, length2 = tb)
|
||||
extrude(connector.faces().sort_by(Axis.Z)[-1], amount = teub)
|
||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]) as metaal_sk:
|
||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]) as metal_sk:
|
||||
Circle(cw/2)
|
||||
extrude(amount = tce)
|
||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]) as klem_sk:
|
||||
Rectangle(cw, cw, rotation = rc)
|
||||
extrude(amount = dc)
|
||||
#corners = connector.edges().filter_by(Axis.X).group_by(Axis.Y)[0]
|
||||
#fillet(corners, radius = 1)
|
||||
|
||||
show(connector)
|
||||
# with BuildPart(connector.faces().sort_by(Axis.Z)[-1]) as clamp:
|
||||
# Box(cw/2, cw/2, dc/2, align=Align.MIN)
|
||||
# far_vertex = (
|
||||
# clamp.vertices().group_by(Axis.Z)[0].group_by(Axis.X)[-1].sort_by(Axis.Y)[-1]
|
||||
# )
|
||||
# w = Vector(far_vertex).length
|
||||
#
|
||||
# # Intersect with a rounded corner
|
||||
# with BuildPart(mode=Mode.INTERSECT) as with_corners:
|
||||
# with BuildSketch(Plane.XZ.rotated((0, 0, 45))) as profile:
|
||||
# with BuildLine() as corner:
|
||||
# l1 = EllipticalCenterArc(
|
||||
# (w - 1, 1 - 0.5), 1, 0.3, start_angle=0, end_angle=90
|
||||
# )
|
||||
# Polyline(l1 @ 1, (0, 2), (0, 0), (w, 0), l1 @ 0)
|
||||
# make_face()
|
||||
# extrude(amount=w, both=True)
|
||||
#
|
||||
# mirror(about=Plane.YZ)
|
||||
# mirror(about=Plane.XZ)
|
||||
# mirror(about=Plane.XY)
|
||||
|
||||
export_step(connector.part, "connector.stp")
|
||||
show_all()
|
||||
|
||||
Reference in New Issue
Block a user