Fixed most of the state machine issues, still a problem with intersection of edges. Need to rebase.

This commit is contained in:
Markus Lampert
2016-12-04 01:18:15 -08:00
parent 4a810bc107
commit 23196b4c69
3 changed files with 274 additions and 119 deletions

View File

@@ -135,6 +135,8 @@ class PathGeom:
endPoint = cls.commandEndPoint(cmd, startPoint)
if (cmd.Name in cls.CmdMoveStraight) or (cmd.Name in cls.CmdMoveFast):
if cls.pointsCoincide(startPoint, endPoint):
return None
return Part.Edge(Part.LineSegment(startPoint, endPoint))
if cmd.Name in cls.CmdMoveArc: