POV-Ray : Newsgroups : povray.general : Normal question (writing on a triangle) : Re: Normal question (writing on a triangle) Server Time
19 Nov 2024 18:19:36 EST (-0500)
  Re: Normal question (writing on a triangle)  
From: Christoph Hormann
Date: 25 Jan 2002 12:59:51
Message: <3C519D13.F39E344E@gmx.de>
"Tom A." wrote:
> 
> 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?

You can for example try uv-mapping or use the 'Reorient_Trans()' macro.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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