THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/03/2005 at 07:53, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
I have a problem. I get the normal of a polygon with CalcFaceNormal(). Then I construct a rotation matrix out of it and set it to an object to align it to that normal.
Works fine so far, but the normal gives me headaches. If I rotate the polygon around 1 axis, the whole normal changes (so all 3 components), which means the constructed matrix has rotations in other axis too, which results in the object to rotate around other axis although the normal has only been rotated around 1 axis.
Anybody knows how to solve this? Any ideas?
Thank you very much!