def getLoopsIntersectionByPair(importRadius, loopsFirst, loopsLast):
 halfImportRadius = (0.5 * importRadius)
 radiusSide = (0.01 * importRadius)
 corners = []
 corners += getInsetPointsByInsetLoops(loopsFirst, True, loopsLast, radiusSide)
 corners += getInsetPointsByInsetLoops(loopsLast, True, loopsFirst, radiusSide)
 allPoints = corners[:]
 allPoints += getInsetPointsByInsetLoops(getInBetweenLoopsFromLoops(loopsFirst, halfImportRadius), True, loopsLast, radiusSide)
 allPoints += getInsetPointsByInsetLoops(getInBetweenLoopsFromLoops(loopsLast, halfImportRadius), True, loopsFirst, radiusSide)
 return triangle_mesh.getDescendingAreaOrientedLoops(allPoints, corners, importRadius)

def getLoopsIntersectionByPair ( importRadius , loopsFirst , loopsLast ) : halfImportRadius = ( 0.5 * importRadius ) radiusSide = ( 0.01 * importRadius ) corners = [ ] corners += getInsetPointsByInsetLoops ( loopsFirst , True , loopsLast , radiusSide ) corners += getInsetPointsByInsetLoops ( loopsLast , True , loopsFirst , radiusSide ) allPoints = corners [ : ] allPoints += getInsetPointsByInsetLoops ( getInBetweenLoopsFromLoops ( loopsFirst , halfImportRadius ) , True , loopsLast , radiusSide ) allPoints += getInsetPointsByInsetLoops ( getInBetweenLoopsFromLoops ( loopsLast , halfImportRadius ) , True , loopsFirst , radiusSide ) return triangle_mesh . getDescendingAreaOrientedLoops ( allPoints , corners , importRadius )
get intersection loops for a pair of loop lists .