Mid points in snap

Added mid points to snapping.