shape outlining and subsection intersection detection

what a commit title.