mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Replace centered with align in BuildPart
This commit is contained in:
parent
e3db219b56
commit
0ee290c816
22 changed files with 1107 additions and 1116 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue