Path: Adaptive - finishing path improvements

- fixed bug in path cleaning (artifacts on the finish path)
- increased path discretization resolution
This commit is contained in:
kreso-t
2018-10-28 20:44:48 +01:00
committed by Yorik van Havre
parent 1e7aa1becf
commit c2f2db8b56
3 changed files with 45 additions and 39 deletions

View File

@@ -35,11 +35,6 @@ from pivy import coin
__doc__ = "Class and implementation of the Adaptive path operation."
def discretize(edge, flipDirection=False):
pts=edge.discretize(Deflection=0.01)
if flipDirection: pts.reverse()
return pts
def convertTo2d(pathArray):
output = []
for path in pathArray:
@@ -81,6 +76,11 @@ def sceneClean():
sceneGraph.removeChild(n)
del scenePathNodes[:]
def discretize(edge, flipDirection=False):
pts=edge.discretize(Deflection=0.0001)
if flipDirection: pts.reverse()
return pts
def GenerateGCode(op,obj,adaptiveResults, helixDiameter):
if len(adaptiveResults)==0 or len(adaptiveResults[0]["AdaptivePaths"])==0:
return