Ask Your Question

Revision history [back]

ok, now to test, I add FillPoly function after FillConvexPoly

for(int i=0;i<polyZoneVerse.size();i++)
{
Point rook_points[1][polyZoneVerse[i].getNbSommet()];
//..code..
for(int j=0; j<polyZoneVerse[i].getNbSommet(); j++)
{//..code..}
fillConvexPoly(drawPatern2,tabPointZone,polyZoneVerse[i].getNbSommet(),Scalar(255,0,0));
int npt[] = { polyZoneVerse[i].getNbSommet() };
const Point* ppt[1] = { rook_points[0] };
fillPoly(drawPatern2,ppt,npt,1,Scalar(255,0,0));

I just add the last line (+parameters required) and I always have poor filling. ( I can't show you a result because I'm a new member, so I can't put new comment with photo ^^ must apparently wait 1day)

ok, now to test, I add FillPoly function after FillConvexPoly

for(int i=0;i<polyZoneVerse.size();i++)
{
Point rook_points[1][polyZoneVerse[i].getNbSommet()];
//..code..
for(int j=0; j<polyZoneVerse[i].getNbSommet(); j++)
{//..code..}
fillConvexPoly(drawPatern2,tabPointZone,polyZoneVerse[i].getNbSommet(),Scalar(255,0,0));
int npt[] = { polyZoneVerse[i].getNbSommet() };
const Point* ppt[1] = { rook_points[0] };
fillPoly(drawPatern2,ppt,npt,1,Scalar(255,0,0));
}

I just add the last line (+parameters required) and I always have poor filling. ( I can't show you a result because I'm a new member, so I can't put new comment with photo ^^ must apparently wait 1day)

ok, now to test, I add FillPoly function after FillConvexPoly

for(int i=0;i<polyZoneVerse.size();i++)
{
Point rook_points[1][polyZoneVerse[i].getNbSommet()];
//..code..
for(int j=0; j<polyZoneVerse[i].getNbSommet(); j++)
{//..code..}
fillConvexPoly(drawPatern2,tabPointZone,polyZoneVerse[i].getNbSommet(),Scalar(255,0,0));
int npt[] = { polyZoneVerse[i].getNbSommet() };
const Point* ppt[1] = { rook_points[0] };
fillPoly(drawPatern2,ppt,npt,1,Scalar(255,0,0));
}

I just add the last line (+parameters required) and I always have poor filling. So i don't think is about convex or non-convex ( I can't show you a result because I'm a new member, so I can't put new comment with photo ^^ must apparently wait 1day)

ok, now to test, I add FillPoly function after FillConvexPoly

for(int i=0;i<polyZoneVerse.size();i++)
{
Point rook_points[1][polyZoneVerse[i].getNbSommet()];
//..code..
for(int j=0; j<polyZoneVerse[i].getNbSommet(); j++)
{//..code..}
fillConvexPoly(drawPatern2,tabPointZone,polyZoneVerse[i].getNbSommet(),Scalar(255,0,0));
int npt[] = { polyZoneVerse[i].getNbSommet() };
const Point* ppt[1] = { rook_points[0] };
fillPoly(drawPatern2,ppt,npt,1,Scalar(255,0,0));
}

I just add the last line (+parameters required) and I always have poor filling. So i don't think is about convex or non-convex ( I can't show you a result because I'm a new member, so I can't put new comment with photo ^^ must apparently wait 1day)