|
Author |
Topic: concave polygons (Read 651 times) |
|
jluxvu
|
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
|
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
|
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
|
Re: concave polygons
« Reply #3 on: Sep 2nd, 2003, 5:04am » |
|
Oops, sorry. I see it now. Thanks for responding
|
|
|
|
|