THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/12/2005 at 20:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.521
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Currently I can find all the polygons that make up a sphere, but I would like to access each of the polygons coordinates. I know there is something very simple that I am over looking and would appreciate any help I could get. Here's the code I have so far:
var obj = doc->FindObject("Sphere");
var pcnt = obj->GetPolygonCount();
var pArray = obj->GetPolygons();
var polyNum, poly;
var i;
for(i = 0; i<=pcnt; i++)
{
polyNum = pArray[i];
poly = obj->GetPolygon(polyNum);
}
So the question is: What do I have to do to the variable poly in order to access it coordinates? Thanks in advance
-Josh-