Replace centered with align in BuildPart

This commit is contained in:
Roger Maitland 2023-01-25 15:03:58 -05:00
parent e3db219b56
commit 0ee290c816
22 changed files with 1107 additions and 1116 deletions

View file

@ -3,10 +3,10 @@ from build123d import *
with BuildPart() as blocks:
with Locations((-1, -1, 0)):
Box(1, 2, 1, centered=(True, False, False))
Box(1, 1, 2, centered=(True, False, False))
Box(1, 2, 1, align=(Align.CENTER, Align.MIN, Align.MIN))
Box(1, 1, 2, align=(Align.CENTER, Align.MIN, Align.MIN))
with Locations((1, -1, 0)):
Box(1, 2, 1, centered=(True, False, False))
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)
)