mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
15 lines
609 B
Python
15 lines
609 B
Python
from build123d import *
|
|
|
|
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, target=blocks)
|
|
|
|
top_edges = blocks2.edges().filter_by_position(Axis.Z, 1, 2, inclusive=(False, True))
|
|
blocks2 = chamfer(*top_edges, length=0.1, target=blocks2)
|
|
|
|
|
|
if "show_object" in locals():
|
|
show_object(blocks2)
|