im not sure if this is even the right forum to ask this, but
im sure you math guys know the answer anyway

i''m trying to figure out how to subdivide a polygon, or moreover-
how to know WHEN to subdivide a polygon.
here''s what i''ve come up with so far-
say i have an stl vector of type "Vert" (im using a vector because i want to be able to increase and decrease verts dynamicaly)
struct Vert
{
double x;
double y;
}
int polygon_count = 1;
int vertice_count = 4;
vector vertex(vertice_count);
/*** This draws a polygon like so ***/
v1 v2
+-------------------------+
| |
| |
+-------------------------+
v4 v3
lets say i kept adding vertices to the middle portion of
my polygon until it were visibly ''divided''
how do i know when i''ve got a second polygon? is there a
magical mathmatic equation i can use?

-eldee
;another space monkey;
[ Forced Evolution Studios ]