fixed examples to work with build1223d

This commit is contained in:
Bernhard 2023-03-22 08:45:18 +01:00
parent 70c14fdd0d
commit f65bc75976
13 changed files with 32 additions and 135 deletions

View file

@ -1,5 +1,4 @@
from build123d import *
import build123d.alg_compat as COMPAT
clock_radius = 10
@ -7,9 +6,9 @@ l1 = CenterArc((0, 0), clock_radius * 0.975, 0.75, 4.5)
l2 = CenterArc((0, 0), clock_radius * 0.925, 0.75, 4.5)
l3 = Line(l1 @ 0, l2 @ 0)
l4 = Line(l1 @ 1, l2 @ 1)
minute_indicator = COMPAT.make_face([l1, l3, l2, l4])
minute_indicator = COMPAT.fillet(
minute_indicator, minute_indicator.vertices(), radius=clock_radius * 0.01
minute_indicator = make_face(l1, l3, l2, l4)
minute_indicator = fillet(
*minute_indicator.vertices(), radius=clock_radius * 0.01, target=minute_indicator
)
clock_face = Circle(clock_radius)