def getInsetPointsByInsetLoop(insetLoop, inside, loops, radius):
 insetPointsByInsetLoop = []
 for pointIndex in xrange(len(insetLoop)):
  pointBegin = insetLoop[(((pointIndex + len(insetLoop)) - 1) % len(insetLoop))]
  pointCenter = insetLoop[pointIndex]
  pointEnd = insetLoop[((pointIndex + 1) % len(insetLoop))]
  if getIsInsetPointInsideLoops(inside, loops, pointBegin, pointCenter, pointEnd, radius):
   insetPointsByInsetLoop.append(pointCenter)
 return insetPointsByInsetLoop

def getInsetPointsByInsetLoop ( insetLoop , inside , loops , radius ) : insetPointsByInsetLoop = [ ] for pointIndex in xrange ( len ( insetLoop ) ) : pointBegin = insetLoop [ ( ( ( pointIndex + len ( insetLoop ) ) - 1 ) % len ( insetLoop ) ) ] pointCenter = insetLoop [ pointIndex ] pointEnd = insetLoop [ ( ( pointIndex + 1 ) % len ( insetLoop ) ) ] if getIsInsetPointInsideLoops ( inside , loops , pointBegin , pointCenter , pointEnd , radius ) : insetPointsByInsetLoop . append ( pointCenter ) return insetPointsByInsetLoop
get the inset points of the inset loop inside the loops .