fixup! [Tool / AutoTool / Pather / RenderPather / PatherMixin] add support for S-bends

This commit is contained in:
jan 2025-11-19 02:23:40 -08:00
parent d3b83a7543
commit 4dc81bd9f7

View File

@ -623,6 +623,8 @@ class AutoTool(Tool, metaclass=ABCMeta):
out_ptype_actual = out_transition.their_port.ptype out_ptype_actual = out_transition.their_port.ptype
elif ccw is not None: elif ccw is not None:
out_ptype_actual = bend.out_port.ptype out_ptype_actual = bend.out_port.ptype
elif not numpy.isclose(straight_length, 0):
out_ptype_actual = straight.ptype
else: else:
out_ptype_actual = self.default_out_ptype out_ptype_actual = self.default_out_ptype
@ -768,6 +770,8 @@ class AutoTool(Tool, metaclass=ABCMeta):
out_ptype_actual = out_transition.their_port.ptype out_ptype_actual = out_transition.their_port.ptype
elif not numpy.isclose(jog_remaining, 0): elif not numpy.isclose(jog_remaining, 0):
out_ptype_actual = sbend.ptype out_ptype_actual = sbend.ptype
elif not numpy.isclose(straight_length, 0):
out_ptype_actual = straight.ptype
else: else:
out_ptype_actual = self.default_out_ptype out_ptype_actual = self.default_out_ptype