FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   concave polygons
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: concave polygons  (Read 651 times)
jluxvu

WWW
concave polygons
« on: Sep 2nd, 2003, 4:30am »

beginShape(POLYGON) doesn't seem to work properly with concave polygons.  Here is an example.  Is this by design?
 
-jluxvu
 
 
float angle = 0f;
 
void setup() {
  size(512,512);
  background(255);
  noStroke();
}
 
void loop() {
  angle++;
  translate(width/2,height/2);
  rotateZ(angle*PI/180f);
  fill(0);
  beginShape(POLYGON);
  vertex( -100,-100,0 );
  vertex(    0,   0,0 );
  vertex(  100,-100,0 );
  vertex(  100, 100,0 );
  vertex( -100, 100,0 );
  endShape();
}
 
fry


WWW
Re: concave polygons
« Reply #1 on: Sep 2nd, 2003, 4:54am »

it's a known bug that's been in there a long time. a fix was supposed to be ready a few weeks ago but should be coming very soon.
 
i'll add it to the 'known bugs' list in revisions.txt for the time being.
 
fry


WWW
Re: concave polygons
« Reply #2 on: Sep 2nd, 2003, 4:56am »

scratch that.. it's already in there.
 
more bugs can be seen in the known bugs list in 'revisions.txt'
 
jluxvu

WWW
Re: concave polygons
« Reply #3 on: Sep 2nd, 2003, 5:04am »

Oops, sorry.  I see it now.  Thanks for responding
 
Pages: 1 

« Previous topic | Next topic »