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:
Yorik van Havre
2016-01-19 22:31:46 -02:00
parent 21504fc467
commit 63904377e2
17 changed files with 3823 additions and 28 deletions

View File

@@ -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