mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 10:41:20 -08:00
15 lines
563 B
Python
15 lines
563 B
Python
from build123d import *
|
|
from ocp_vscode import show
|
|
|
|
blocks = Pos(-1, -1, 0) * Box(1, 2, 1, align=(Align.CENTER, Align.MIN, Align.MIN))
|
|
blocks += Box(1, 1, 2, align=(Align.CENTER, Align.MIN, Align.MIN))
|
|
blocks += Pos(1, -1, 0) * Box(1, 2, 1, align=(Align.CENTER, Align.MIN, Align.MIN))
|
|
|
|
bottom_edges = blocks.edges().filter_by_position(Axis.Z, 0, 1, inclusive=(True, False))
|
|
blocks2 = chamfer(bottom_edges, length=0.1)
|
|
|
|
top_edges = blocks2.edges().filter_by_position(Axis.Z, 1, 2, inclusive=(False, True))
|
|
blocks2 = chamfer(top_edges, length=0.1)
|
|
|
|
|
|
show(blocks2)
|