Compare commits
22 Commits
48fe789d67
...
029a0f681f
Author | SHA1 | Date | |
---|---|---|---|
029a0f681f | |||
bc36e92aab | |||
681f8e6354 | |||
1992cf572a | |||
3a73fb1d60 | |||
25cde0abb5 | |||
2ef7a6e9e3 | |||
f78ba3655e | |||
b4d287f384 | |||
037118883b | |||
5368fd4e16 | |||
d0c1b00d7e | |||
6fba14ae21 | |||
82fafdc61b | |||
7336545f07 | |||
4e40e3f829 | |||
79f2088180 | |||
e89d912ce8 | |||
76511b95e6 | |||
88bd5e897e | |||
dc89491694 | |||
de9714041f |
@ -541,7 +541,7 @@ class Pather(Builder):
|
||||
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))]
|
||||
return jog[1]
|
||||
|
||||
dst_extra_args = {'out_ptype': out_ptype}
|
||||
if plug_destination:
|
||||
|
@ -290,7 +290,7 @@ class BasicTool(Tool, metaclass=ABCMeta):
|
||||
|
||||
gen_straight, sport_in, sport_out = self.straight
|
||||
tree, pat = Library.mktree(SINGLE_USE_PREFIX + 'path')
|
||||
pat.add_port_pair(names=port_names, ptype=in_ptype)
|
||||
pat.add_port_pair(names=port_names)
|
||||
if data.in_transition:
|
||||
ipat, iport_theirs, _iport_ours = data.in_transition
|
||||
pat.plug(ipat, {port_names[1]: iport_theirs})
|
||||
|
@ -214,7 +214,7 @@ def _read_block(block: ezdxf.layouts.BlockLayout | ezdxf.layouts.Modelspace) ->
|
||||
if isinstance(element, LWPolyline):
|
||||
points = numpy.asarray(element.get_points())
|
||||
elif isinstance(element, Polyline):
|
||||
points = numpy.asarray([pp.xyz for pp in element.points()])
|
||||
points = numpy.asarray(element.points())[:, :2]
|
||||
attr = element.dxfattribs()
|
||||
layer = attr.get('layer', DEFAULT_LAYER)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user