mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
fix: return -Vector if a single alignment
This commit is contained in:
parent
e8365566f7
commit
2ceef0307a
1 changed files with 3 additions and 3 deletions
|
|
@ -2541,11 +2541,11 @@ def to_align_offset(
|
|||
if align is None or align is Align.NONE:
|
||||
return Vector(0, 0, 0)
|
||||
if align is Align.MIN:
|
||||
return Vector(min_point)
|
||||
return -Vector(min_point)
|
||||
if align is Align.MAX:
|
||||
return Vector(max_point)
|
||||
return -Vector(max_point)
|
||||
if align is Align.CENTER:
|
||||
return Vector(center)
|
||||
return -Vector(center)
|
||||
|
||||
for alignment, min_coord, max_coord, center_coord in zip(
|
||||
map(Align, align),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue