curve : bug with border if non clockwise