Path: Adaptive - finishing path improvements
- fixed bug in path cleaning (artifacts on the finish path) - increased path discretization resolution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user