THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2002 at 09:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
---------
How can I rotate a polygon? I tried rotate its three (or four) points but I can´t make them rotate in a circle. I tried to add a vector like 0,0,1 and then check if the distance to the midpoint is still the same. And then check the other two (or three) points if they have the same distance to each other so they would rotate around the midpoint too. But it seems to be wrong or I cannot make it. :(
(for the first point) :
vadr[i] += Vector(0,0,1);
vadr[i] = (distance_to_midpoint/Len(vadr[i]))*vadr[i];
Anybody know how to correctly rotate a polygon?
Thanks in advance
Samir