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