Correct bugs when initial triangle is reduced to a vertical line or an axis-aligned triangle.