two curves. one curve's end point touches the other curve in the middle. how to cut the second curve at the point where it is touched by the first curve? thanks