From 982304bd10437ee31f23141d87c5ae86230400c3 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 18 Nov 2025 22:11:59 -0800 Subject: [PATCH] fixup! [Tool / AutoTool / Pather / RenderPather / PatherMixin] add support for S-bends --- masque/builder/pather_mixin.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/masque/builder/pather_mixin.py b/masque/builder/pather_mixin.py index a60aaeb..e2c8ca2 100644 --- a/masque/builder/pather_mixin.py +++ b/masque/builder/pather_mixin.py @@ -278,14 +278,6 @@ class PatherMixin(metaclass=ABCMeta): angle = (port_dst.rotation - port_src.rotation) % (2 * pi) - def get_jog(ccw: SupportsBool, length: float) -> float: - tool = self.tools.get(portspec_src, self.tools[None]) - in_ptype = 'unk' # Could use port_src.ptype, but we're assuming this is after one bend already... - tree2 = tool.path(ccw, length, in_ptype=in_ptype, port_names=('A', 'B'), out_ptype=out_ptype, **kwargs) - top2 = tree2.top_pattern() - jog = rotation_matrix_2d(top2['A'].rotation) @ (top2['B'].offset - top2['A'].offset) - return jog[1] * [-1, 1][int(bool(ccw))] - dst_extra_args = {'out_ptype': out_ptype} if plug_destination: dst_extra_args['plug_into'] = portspec_dst