CodeWarrior prob

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

On 09/05/2004 at 12:03, xxxxxxxx wrote:

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

---------
I want to calc the face normal with CalcFaceNormal. MSVC++ does compile it without hesitation but my CodeWarrior 8 does tell me:

    
    
    Polygon trianglep,triangleq;
    
    
    
    
    [...] //Polygon is filled inbetween
    
    
    
    
    n1 = CalcFaceNormal(vadr,trianglep);

Error   : function call 'CalcFaceNormal(const Vector *, {lval} Polygon)' does not match
'CalcFaceNormal(Vector *, const Polygon &)'
SelectTool.cpp line 23    n1 = CalcFaceNormal(vadr,trianglep);
Anybody any idea? :o
Thanks

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

On 09/05/2004 at 13:33, xxxxxxxx wrote:

Looks like you are trying to pass a 'const Vector*', but CalcFaceNormal wants just a 'Vector *' although it should really be taking a const! just cast it and it'll be fine, and safe since CalcFaceNormal is not changing anything, or, look at why you have 'vadr' as a const, was it passed to you like this?

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

On 10/05/2004 at 02:23, xxxxxxxx wrote:

Ah yeah! Casting it really did it. And no, it wasn´t passed to me like this.
Thanks Dave