def getInteriorSegments(loops, segments):
 interiorSegments = []
 for segment in segments:
  center = (0.5 * (segment[0].point + segment[1].point))
  if euclidean.getIsInFilledRegion(loops, center):
   interiorSegments.append(segment)
 return interiorSegments

def getInteriorSegments ( loops , segments ) : interiorSegments = [ ] for segment in segments : center = ( 0.5 * ( segment [ 0 ] . point + segment [ 1 ] . point ) ) if euclidean . getIsInFilledRegion ( loops , center ) : interiorSegments . append ( segment ) return interiorSegments
get segments inside the loops .