I have a stack of curves that come in one of these three arrangements. In every case, I need to check if they intersect and if they do, trim B with A, otherwise do nothing. How will I approach this? It'd be great to have a suggestion in VBScript and in Python, for learning purposes.