THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/03/2010 at 13:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r11
Platform:
Language(s) : C++ ;
---------
Hi there,
i am missing the idea how to read out an array in the right order. this is my code where i put coordinates into an array and how i take them to build points of a spline. i just dont get the final idea how to read out the values properly so they build up correct trails of the particles...
for (int i = 0; i<particleCount;i++)
{
const Particle *particle = particleObject->GetParticleR(particleTag, i);
if (particle->bits&(PARTICLE_VISIBLE|PARTICLE_ALIVE))
{
punkte.Push(particle->off);
}
}
padr = splineResult->GetPointW();
for (int j=0;j<punkte.GetCount();j++)
{
//i know that my fault is in this part
if (j<splineResult->GetPointCount())
padr[j] = punkte[j];
}
here is a screenshot. its looking nice, but obviously not the way i want it to look :)
i hope someone can give me a hint how to adress the array properly here..
thanks in advance
cheers,
ello