def getPointsFromLoop(loop, radius, thresholdRatio=0.9):
 radius = abs(radius)
 points = []
 for pointIndex in xrange(len(loop)):
  pointBegin = loop[pointIndex]
  pointEnd = loop[((pointIndex + 1) % len(loop))]
  points.append(pointBegin)
  addPointsFromSegment(pointBegin, pointEnd, points, radius, thresholdRatio)
 return points

def getPointsFromLoop ( loop , radius , thresholdRatio = 0.9 ) : radius = abs ( radius ) points = [ ] for pointIndex in xrange ( len ( loop ) ) : pointBegin = loop [ pointIndex ] pointEnd = loop [ ( ( pointIndex + 1 ) % len ( loop ) ) ] points . append ( pointBegin ) addPointsFromSegment ( pointBegin , pointEnd , points , radius , thresholdRatio ) return points
get the points from every point on a loop and between points .