PDA

View Full Version : Spli a polygon (quad)



Leyder Dylan
02-20-2002, 07:11 AM
Hi,

Someone has a algo for spliting a quads with 4 vertex.

Thanks in advance ...

02-20-2002, 07:32 AM
(v1,v2,v3,v4) -> (v1,v2,v3),(v1,v3,v4)

chxfryer
02-20-2002, 08:57 AM
I think he means to split it into 4 tri's, maybe not. He would have to find the mid point then use that with the corner vertices. (for 4 tris that is)

lsdi
02-20-2002, 11:43 AM
im using like above, but Im interested in an algo too.

to split 1 quad into 4 triangles... not 2 like above

02-20-2002, 11:51 AM
v0 = (v1+v2+v3+v4)*0.25f

(v1,v2,v3,v4)->(v0,v1,v2),(v0,v2,v3),(v0,v3,v4),(v0,v4,v1)

lol