Point Retrieval

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/09/2009 at 17:11, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   11 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
How do I get the location of the point that has an index 1 higher than objPoly->GetPointW()->x;

Thanks,

~Shawn

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/09/2009 at 17:19, xxxxxxxx wrote:

Not sure that I follow. GetPointW/R() returns a Vector* array with number of elements GetPointCount(). So, to index into the array, you do something like this:

Vector* vadr = objPoly->GetPointW();
if (!vadr) return FALSE;
LONG vcnt = objPoly->GetPointCount();
for (LONG j = 0L; j != vcnt; ++j)
{
   GePrint("objPoly Vector["+LongToString(j)+"] = "+RealToString(vadr[j].x)+", "+RealToString(vadr[j].y)+", "+RealToString(vadr[j].z));
}