Cut lines passing polyline

This and other related posts will help to get started: