THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/03/2009 at 08:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hi,
i have a mathematical problem, maybe someone here has an idea
When you are in poly-mode and select a polygon, there will be an axis drawn onto the poly.
How would i be able to compute that axis myself, if i only have the polyPoints and its normal.
The poly normal would be the z-axis ofc, but how would i get the y-axis of the polygon, which then would allow me to compute the x-axis ?
There are ofc unlimited possibilities to arrage the x and y axes on the poly-plane, while both are perepndicular to the z-axis and each other, but what i want is the same orientation that you get when you select a poly in c4d.
Ofc this must work for arbitrary orientations of the poly in space...
Maybe i have to rotate the poly so that it is perpendicular to a world plane, then get the needed axis and then rotate it back or sth.. ?
greetings,
Daniel