We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › concave polys broken in P3D and OGL
Page Index Toggle Pages: 1
concave polys broken in P3D and OGL (Read 625 times)
concave polys broken in P3D and OGL
May 22nd, 2005, 11:47am
 
Code:

void setup()
{
size(500,500,P3D);
}
void draw()
{
background(0);
beginShape(POLYGON);
vertex(230, 220);
bezierVertex(280, 200, mouseX, mouseY, 230, 275);
bezierVertex(250, 280, 260, 225, 230, 220);
endShape();
}


Looks like it's broken again.

Works fine with just size(500,500), but not with P3D or OpenGL.
Re: concave polys broken in P3D and OGL
Reply #1 - May 22nd, 2005, 4:21pm
 
there are just problems when points are duplicated. like when the last point in the shape meets the first, which happens with curves and i need to re-add detection code to avoid it.

you may have some luck (no guarantees) with making the second bezierVertex() call not meet the vertex() coordinate exactly, like just have it off by .0001 or something till it can be fixed.
Re: concave polys broken in P3D and OGL
Reply #2 - Jul 28th, 2005, 4:44am
 
now filed in the bugs db for tracking:
http://dev.processing.org/bugs/show_bug.cgi?id=97
Page Index Toggle Pages: 1