Compare commits
25 Commits
029a0f681f
...
48fe789d67
Author | SHA1 | Date | |
---|---|---|---|
48fe789d67 | |||
d559c1231b | |||
08dd66ea78 | |||
dad9055089 | |||
97a1d4d718 | |||
adf8345022 | |||
23b1eedc10 | |||
ce30c4f6cd | |||
ba4fc9f4b6 | |||
611b556499 | |||
30553b9766 | |||
1241d99473 | |||
10306f1d0c | |||
48187875ee | |||
ca0826ac09 | |||
c178eabc1e | |||
fb5d4602ee | |||
b44486bd2a | |||
4817ea1f4e | |||
cc727cacbe | |||
af0db0b278 | |||
72fe0dccab | |||
5e0eef7c59 | |||
ad00ade097 | |||
385a37e0a2 |
@ -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)
|
tree2 = tool.path(ccw, length, in_ptype=in_ptype, port_names=('A', 'B'), out_ptype=out_ptype, **kwargs)
|
||||||
top2 = tree2.top_pattern()
|
top2 = tree2.top_pattern()
|
||||||
jog = rotation_matrix_2d(top2['A'].rotation) @ (top2['B'].offset - top2['A'].offset)
|
jog = rotation_matrix_2d(top2['A'].rotation) @ (top2['B'].offset - top2['A'].offset)
|
||||||
return jog[1]
|
return jog[1] * [-1, 1][int(bool(ccw))]
|
||||||
|
|
||||||
dst_extra_args = {'out_ptype': out_ptype}
|
dst_extra_args = {'out_ptype': out_ptype}
|
||||||
if plug_destination:
|
if plug_destination:
|
||||||
|
@ -290,7 +290,7 @@ class BasicTool(Tool, metaclass=ABCMeta):
|
|||||||
|
|
||||||
gen_straight, sport_in, sport_out = self.straight
|
gen_straight, sport_in, sport_out = self.straight
|
||||||
tree, pat = Library.mktree(SINGLE_USE_PREFIX + 'path')
|
tree, pat = Library.mktree(SINGLE_USE_PREFIX + 'path')
|
||||||
pat.add_port_pair(names=port_names)
|
pat.add_port_pair(names=port_names, ptype=in_ptype)
|
||||||
if data.in_transition:
|
if data.in_transition:
|
||||||
ipat, iport_theirs, _iport_ours = data.in_transition
|
ipat, iport_theirs, _iport_ours = data.in_transition
|
||||||
pat.plug(ipat, {port_names[1]: iport_theirs})
|
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):
|
if isinstance(element, LWPolyline):
|
||||||
points = numpy.asarray(element.get_points())
|
points = numpy.asarray(element.get_points())
|
||||||
elif isinstance(element, Polyline):
|
elif isinstance(element, Polyline):
|
||||||
points = numpy.asarray(element.points())[:, :2]
|
points = numpy.asarray([pp.xyz for pp in element.points()])
|
||||||
attr = element.dxfattribs()
|
attr = element.dxfattribs()
|
||||||
layer = attr.get('layer', DEFAULT_LAYER)
|
layer = attr.get('layer', DEFAULT_LAYER)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user