|
|
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'
|
|