Open adam-urbanczyk opened 10 months ago
@adam-urbanczyk In continuation of your comment on #1574 , I would add cq.Wire
in addition to cq.Shape
and cq.Workplane
to this issue.
cq.Wire
is a cq.Shape
@adam-urbanczyk I got it working for a Shape
by renaming the argument arg
and dispatching on its type. However I need some guidance about what semantics you expect for a Workspace. Just moving the workspace by the following lambda obviously does not work:
if isinstance(arg, Workplane):
wp = arg
callback = lambda v : wp.move(v)
Something like this:
v.moved(loc) for v in arg.vals() if isinstance(v, Shape)
Something like this:
v.moved(loc) for v in arg.vals() if isinstance(v, Shape)
Thanks @adam-urbanczyk . In my PR I used the following. Let me know this is what you intended.
res = [
v.moved(p).move(loc)
for v in arg.vals()
for p in pnts
if isinstance(v, Shape)
]
E.g.