nanogui: GrFillPoly doesn't work on concave polygon
Subject:
GrFillPoly doesn't work on concave polygon
From:
"Patrice Mancini" ####@####.####
Date:
1 Mar 2002 15:43:53 -0000
Message-Id: <C4986887AFD0FE4FAB6D5EB312E9BDD30417BC@ncemx.smart-fusion.com>
If I try to fill a concave polygone, nothing is drawn...
GR_POINT pt1[5] = {{10,20},{150,30},{120,120},{60,60},{15,100}};
GR_POINT pt2[5] = {{10,20},{150,30},{120,120},{60,160},{15,100}};
GrPoly(w1,gc1,5,pt1); // OK
GrFillPoly(w1,gc1,5,pt1); // Fail to draw
GrPoly(w1,gc1,5,pt2); // OK
GrFillPoly(w1,gc1,5,pt2); // OK
I have this problem with the last release (0.89-pre-8) seems OK with previous release.
Patrice