nanogui: GrFillPoly doesn't work on concave polygon


Previous by date: 8 Mar 2002 14:56:54 -0000 IBM article, Alex Holden
Next by date: 8 Mar 2002 14:56:54 -0000 Re: GrFillPoly doesn't work on concave polygon, Alex Holden
Previous in thread: 8 Mar 2002 14:56:54 -0000 GrFillPoly doesn't work on concave polygon, Patrice Mancini
Next in thread: 8 Mar 2002 14:56:54 -0000 Re: GrFillPoly doesn't work on concave polygon, Alex Holden

Subject: RE: [nanogui] GrFillPoly doesn't work on concave polygon
From: Simon Wood ####@####.####
Date: 8 Mar 2002 14:56:54 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB208790B76@exchange.saltaire.pace.co.uk>

I'll probably regret asking, but....

1). Is anyone looking at this?

2). What style of crossing polygon fill do we need (Odd Parity, Non 
Exterior or Winding)?

Simon.


-----Original Message-----
From: Jordan Crouse ####@####.####
Sent: Friday, March 01, 2002 3:39 PM
To: Patrice Mancini
Subject: Re: [nanogui] GrFillPoly doesn't work on concave polygon


This is true.

The previous release had an algorithm that was causing many issues, so
in the interest of stability we pulled it out before 0.89-pre-8.  If
anyone is interested these sort of algorithms, then the polygon fill
code definitely needs some tender loving care.

Jordan


On Fri, 2002-03-01 at 08:37, Patrice Mancini wrote:
>  
> 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



Previous by date: 8 Mar 2002 14:56:54 -0000 IBM article, Alex Holden
Next by date: 8 Mar 2002 14:56:54 -0000 Re: GrFillPoly doesn't work on concave polygon, Alex Holden
Previous in thread: 8 Mar 2002 14:56:54 -0000 GrFillPoly doesn't work on concave polygon, Patrice Mancini
Next in thread: 8 Mar 2002 14:56:54 -0000 Re: GrFillPoly doesn't work on concave polygon, Alex Holden


Powered by ezmlm-browse 0.20.