Partially works. Bug found.
Sweeping almost works.
Sweeping almost works, bugfixes, preparing for triangulation.