POV-Ray : Newsgroups : povray.general : Normal question (writing on a triangle) : Normal question (writing on a triangle) Server Time
6 Aug 2024 21:40:48 EDT (-0400)
  Normal question (writing on a triangle)  
From: Tom A 
Date: 25 Jan 2002 12:50:10
Message: <3C519AD2.9AB113F1@my-deja.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.