def getPointsFromPath(path, radius, thresholdRatio=0.9):
 if (len(path) < 1):
  return []
 if (len(path) < 2):
  return path
 radius = abs(radius)
 points = []
 addHalfPath(path, points, radius, thresholdRatio)
 addHalfPath(path[::(-1)], points, radius, thresholdRatio)
 return points

def getPointsFromPath ( path , radius , thresholdRatio = 0.9 ) : if ( len ( path ) < 1 ) : return [ ] if ( len ( path ) < 2 ) : return path radius = abs ( radius ) points = [ ] addHalfPath ( path , points , radius , thresholdRatio ) addHalfPath ( path [ : : ( - 1 ) ] , points , radius , thresholdRatio ) return points
get the points from every point on a path and between points .