POV-Ray : Newsgroups : povray.binaries.images : topaz (84k jpg) : Re: topaz (84k jpg) Server Time
4 Nov 2024 15:31:01 EST (-0500)
  Re: topaz (84k jpg)  
From: Samuel Benge
Date: 22 Aug 2007 17:57:44
Message: <46ccb158@news.povray.org>
Alain wrote:
> Samuel Benge nous apporta ses lumieres en ce 2007/08/22 15:34:
>> If you have a way to calculate the normals for single faces (not the 
>> angle between two faces), by all means, let me know! Otherwise, I'm 
>> off to try the answer via Google....

> intersection{
> plane{Miler_indice, 1}
> .
> .
> .
> material{...}
> }

Attached is an image demonstrating the result of that approach.

Here is the code:
intersection{
  plane{z,1}
  plane{-z,1}

  plane{<0,-1,0>,3 }
  plane{<1,-1,0>,3 }
  plane{<1,0,0>,3 }
  plane{<0,1,0>,3 }
  plane{<-1,1,0>,3 }
  plane{<-1,0,0>,3 }

  pigment{rgb .5}
}

See the problem? These indices were supposed to make a hexagon, but 
instead produced 90 and 45 degree angles. Am I missing something?

Sam


Post a reply to this message


Attachments:
Download 'wrong.jpg' (7 KB)

Preview of image 'wrong.jpg'
wrong.jpg


 

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