Aangepast naar het Engels
This commit is contained in:
@@ -2,34 +2,35 @@ from ocp_vscode import *
|
|||||||
from build123d import *
|
from build123d import *
|
||||||
set_port(3939)
|
set_port(3939)
|
||||||
|
|
||||||
bc = breedte_connector = 20.0
|
wc = width_connector = 20.0
|
||||||
lrd = lengte_rechte_deel = 5.0
|
lsp = length_straight_part = 5.0
|
||||||
dcr = dikte_connector_rand = 1.0
|
tce = thickness_connector_edge = 1.0
|
||||||
ds = dikte_schuinezijde = 2.5
|
tb = thickness_bevel = 2.5
|
||||||
drtb = dikte_rand_tot_bord = 0.5
|
teub = thickness_edge_until_board = 0.5
|
||||||
bbz = breedte_bord_zijde = 15.0
|
wbs = width_board_side = 15.0
|
||||||
dtc = dikte_totaal_connector = 4.0
|
ttc = thickness_total_connector = 4.0
|
||||||
kb = klem_breedte = 9.8
|
cw = clamp_width = 9.8
|
||||||
vk = verdraaiing_klem = 45.0
|
rc = rotation_clamp = 45.0
|
||||||
dk = diepte_klem = 8.0
|
dc = depth_clamp = 8.0
|
||||||
|
|
||||||
with BuildPart() as connector:
|
with BuildPart() as connector:
|
||||||
with BuildSketch() as connector_sk:
|
with BuildSketch() as connector_sk:
|
||||||
with BuildLine() as connector_ln:
|
with BuildLine() as connector_ln:
|
||||||
l1 = Line(((bc/2), -(lrd/2)), ((bc/2), (lrd/2)))
|
l1 = Line(((wc/2), -(lsp/2)), ((wc/2), (lsp/2)))
|
||||||
l2 = ThreePointArc(((bc/2), (lrd/2)), (0, ((lrd/2) + (bc/2))), (-(bc/2), (lrd/2)))
|
l2 = ThreePointArc(((wc/2), (lsp/2)), (0, ((lsp/2) + (wc/2))), (-(wc/2), (lsp/2)))
|
||||||
l3 = Line((-(bc/2), (lrd/2)), (-(bc/2), -(lrd/2)))
|
l3 = Line((-(wc/2), (lsp/2)), (-(wc/2), -(lsp/2)))
|
||||||
l4 = ThreePointArc((-(bc/2), -(lrd/2)), (0, -((lrd/2) + (bc/2))), ((bc/2), -(lrd/2)))
|
l4 = ThreePointArc((-(wc/2), -(lsp/2)), (0, -((lsp/2) + (wc/2))), ((wc/2), -(lsp/2)))
|
||||||
make_face()
|
make_face()
|
||||||
extrude(amount = dtc-drtb)
|
extrude(amount = ttc-teub)
|
||||||
chamfer(connector.edges().group_by(Axis.Z)[-1], length = ds, length2 = ds)
|
chamfer(connector.edges().group_by(Axis.Z)[-1], length = tb, length2 = tb)
|
||||||
extrude(connector.faces().sort_by(Axis.Z)[-1], amount = drtb)
|
extrude(connector.faces().sort_by(Axis.Z)[-1], amount = teub)
|
||||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]):
|
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]) as metaal_sk:
|
||||||
Circle(kb/2)
|
Circle(cw/2)
|
||||||
extrude(amount = dcr)
|
extrude(amount = tce)
|
||||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]):
|
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]) as klem_sk:
|
||||||
Rectangle(kb, kb, rotation = vk)
|
Rectangle(cw, cw, rotation = rc)
|
||||||
extrude(amount = dk)
|
extrude(amount = dc)
|
||||||
fillet(connector.vertices().filter_by(Axis.Z)[0], radius = 0.1)
|
#corners = connector.edges().filter_by(Axis.X).group_by(Axis.Y)[0]
|
||||||
|
#fillet(corners, radius = 1)
|
||||||
|
|
||||||
show(connector)
|
show(connector)
|
||||||
|
|||||||
Reference in New Issue
Block a user