THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/03/2010 at 06:50, xxxxxxxx wrote:
Cinema 4D Version: r11
Hi, i am using this to access a user defined object:
cloneOfBase = op->GetAndCheckHierarchyClone(hh,baseMesh,HCLONE_ASPOLY,&dirty,NULL,FALSE); if (!cloneOfBase) goto Error;
and this to get its points and polygons:
padr = ToPoint(cloneOfBase)->GetPointR(); pol = ToPoly(cloneOfBase)->GetPolygonR(); count = ToPoint(cloneOfBase)->GetPointCount();
everything works fine, but as soon as i use this line (while 0<i<count) it crashes for certain objects (e.g. Ooiltank, Ofractal,Odisc), Oplane, Ocube, Opyramid and nearly all others work :
Vector mPoint = (padr[pol[i].a] + padr[pol[i].b] + padr[pol[i].c] + padr[pol[i].d])/(3 + (pol[i].c == pol[i].d));
can anyone tell me why??
thank you very much!