with support for contour overlap testing
with support for contour overlap testing