On 02/03/2015 at 13:07, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13+
Platform: Windows ;
Language(s) : C++ ;
---------
here is a code snippet:
for(Int32 j = 0; j < op->vcnt; ++j)
{
PolyVector mNormal;
vps->vd->GetNormals(op, j, &mNormal);//crash
}
the same loop works fine with GetUVW , but GetNormals simply crashes without anyhint of why!! "it crashes from the first call when j = 0",
I also tried passing a whole dynamic array with the required size like this:
vector<PolyVector> mNormalP; mNormalP.resize(op->vcnt);
vps->vd->GetNormals(op, 0, &mNormalP[0]);//crash
help please, this function is essential to transfer phong normals from the model, it is a must to call it!!