THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/09/2010 at 18:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
OK, maybe it's just my inexperience with c++, but I'm not getting how to convert SVector to Vector.
Here is my old code:
Vector aN, bN, cN, dN;
Vector *phN = ToPoly(op)->CreatePhongNormals();
aN = !phN[pInd*4];
bN = !phN[pInd*4+1];
cN = !phN[pInd*4+2];
dN = !phN[pInd*4+3];
if(phN) GeFree(phN);
In R12 CreatePhongNormals() returns an SVector, but I can't seem to figure out how to convert it.
I tried this:
Vector aN, bN, cN, dN;
SVector *phN = ToPoly(op)->CreatePhongNormals();
aN = !phN[pInd*4].ToLV();
bN = !phN[pInd*4+1].ToLV();
cN = !phN[pInd*4+2].ToLV();
dN = !phN[pInd*4+3].ToLV();
if(phN) GeFree(phN);
But that gives me errors.
How should I rewrite the old code to work with R12?
Adios,
Cactus Dan