コード例 #1
0
def getIsIntersectingWithinLoop(loop, otherLoop, outsetLoop):
    "Determine if the loop is intersecting or is within the other loop."
    if euclidean.isLoopIntersectingLoop(loop, otherLoop):
        return True
    return euclidean.isPathInsideLoop(
        otherLoop, loop) != euclidean.isPathInsideLoop(otherLoop, outsetLoop)
コード例 #2
0
ファイル: widen.py プロジェクト: chriskyfung/MakerDroid
def getIsIntersectingWithinLoop( loop, otherLoop, outsetLoop ):
	"Determine if the loop is intersecting or is within the other loop."
	if euclidean.isLoopIntersectingLoop( loop, otherLoop ):
		return True
	return euclidean.isPathInsideLoop( otherLoop, loop ) != euclidean.isPathInsideLoop( otherLoop, outsetLoop )