|
|
I was going to put some text on a triangle, and was wondering how to do
it.
given a triangle with three points (p1, p2, p3) I can get a normal by
using a cross product of (p2-p1) and (p3-p1).
Now that I have that, I can't figure out how to use it to rotate my text
so it is on the plane defined by the three points.
(I can position the text once I have the rotation - I was going to
translate it to (p1+p2+p3)/3 which puts it in the middle of the
triangle.)
Any help?
--
Tom A.
"No doubt many that post deserve to be flamed. And many that are flamed
didn't deserve it. Can you give them the latter? Then don't be so
quick to deal out the former!" - not Gandalf.
Deja mail is gone. Look for me at raugost at yahoo . com
Post a reply to this message
|
|