keep track of direction we are drawing in and make sure we leave two intersection points when we have changed direction.