Path: Added new series of tools and fixes
* Fixed UsePlacement property of Path Compounds * Added Path FaceProfile command - does a simple 2D contour of a face * Added Path FacePocket command - does a simple 2D pocket of a face * Added Path Array command - does an array with copies of a path * Added Path Custom command - to add custom G-Code * Added Inspect command - to inspect the G-Code of a path
This commit is contained in:
@@ -58,7 +58,11 @@ class ObjectCompoundExtended:
|
||||
cmds = []
|
||||
for child in obj.Group:
|
||||
if child.isDerivedFrom("Path::Feature"):
|
||||
cmds.extend(child.Path.Commands)
|
||||
if obj.UsePlacements:
|
||||
for c in child.Path.Commands:
|
||||
cmds.append(c.transform(child.Placement))
|
||||
else:
|
||||
cmds.extend(child.Path.Commands)
|
||||
if cmds:
|
||||
path = Path.Path(cmds)
|
||||
obj.Path = path
|
||||
|
||||
Reference in New Issue
Block a user