Fix sort for Axis.X, Axis.Y in Ex. 19

This commit is contained in:
jdegenstein 2023-01-11 14:50:37 -06:00 committed by GitHub
parent 8b87b58f48
commit 3644f63837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,7 @@ with BuildPart() as ex19:
Box(length, width, thickness)
topf = ex19.faces().sort_by(Axis.Z)[-1]
with Workplanes(topf):
vtx = topf.vertices().sort_by(Axis.X and Axis.Y)[1]
vtx = topf.vertices().sort_by(Axis.X).sort_by(Axis.Y)[1]
with Locations((vtx.X, vtx.Y)):
with BuildSketch() as ex19_sk:
Circle(radius=width / 4)