def getInsetSeparateLoopsFromLoops(loops, radius, thresholdRatio=0.9):
 if (radius == 0.0):
  return loops
 isInset = (radius > 0)
 insetSeparateLoops = []
 arounds = getAroundsFromLoops(loops, abs(radius), thresholdRatio)
 for around in arounds:
  if (isInset == euclidean.getIsInFilledRegion(loops, around[0])):
   if isInset:
    around.reverse()
   insetSeparateLoops.append(around)
 return insetSeparateLoops

def getInsetSeparateLoopsFromLoops ( loops , radius , thresholdRatio = 0.9 ) : if ( radius == 0.0 ) : return loops isInset = ( radius > 0 ) insetSeparateLoops = [ ] arounds = getAroundsFromLoops ( loops , abs ( radius ) , thresholdRatio ) for around in arounds : if ( isInset == euclidean . getIsInFilledRegion ( loops , around [ 0 ] ) ) : if isInset : around . reverse ( ) insetSeparateLoops . append ( around ) return insetSeparateLoops
get the separate inset loops .