Skip to content

Commit

Permalink
objects_curve.py -> change calculation method for tangent direction u…
Browse files Browse the repository at this point in the history
…sing new Vector/direction transform method
  • Loading branch information
jdegenstein authored Jun 21, 2024
1 parent 2fae946 commit ce49b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build123d/objects_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ def __init__(

start = WorkplaneList.localize(start)
self.start = start
start_tangent = WorkplaneList.localize(tangent).normalized()
if context is None:
jern_workplane = Plane.XY
else:
jern_workplane = copy.copy(WorkplaneList._get_context().workplanes[0])
jern_workplane.origin = start
start_tangent = Vector(tangent).transform(jern_workplane.reverse_transform, vec_dir=False)

arc_direction = copysign(1.0, arc_size)
self.center_point = start + start_tangent.rotate(
Expand Down

0 comments on commit ce49b77

Please sign in to comment.