gumyr / build123d

A python CAD programming library
Apache License 2.0
505 stars 85 forks source link

param_at_point fails for an EllipticalCenterArc #570

Open gumyr opened 7 months ago

gumyr commented 7 months ago
p2 = Vector(6.239269457014147, 2.41089213826002, 0.0)
l7 = EllipticalCenterArc((15, 0), 10, 5, start_angle=90, end_angle=270)
param = l7.edge().param_at_point(p2)
p3 = l7 @ param
print(f"{p2=}, {p3=}")
p2=Vector: (6.239269457014147, 2.41089213826002, 0.0), p3=Vector: (7.103320014699106, 3.067671967867013, 0.0)

image

p2 must be equal to p3 (within TOLERANCE)