THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/09/2011 at 13:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Hey everyone,, I am trying to subdivide a single polygon manually using the modeling class..
Here's the code I am working with so far
for(int i = 0; i < polyCount; i++)
{
LONG a, b, c, d;
LONG na, nb, nc, nd;
a = polys[i].a;
b = polys[i].b;
c = polys[i].c;
d = polys[i].d;
ctr = points[a] + points[b] + points[c] + points[d] / 4;
na = mod->SplitEdge(polyObj, a, b, .5);
nb = mod->SplitEdge(polyObj, b, c, .5);
nc = mod->SplitEdge(polyObj, c, d, .5);
nd = mod->SplitEdge(polyObj, d, a, .5);
LONG pg1 = mod->SplitPolygon(polyObj, i, na, nc);
}
When I run this code, I do not get a split in the polygon. Does anyone see a reason why?
I have used the Modeling Class in the past but can't seem to figure out why it is not working here.. Any thoughts?
Thanks,
Shawn