POV-Ray : Newsgroups : povray.newusers : Creating Polyhedra with different colors for the faces : Re: Creating Polyhedra with different colors for the faces Server Time
29 Jul 2024 08:19:29 EDT (-0400)
  Re: Creating Polyhedra with different colors for the faces  
From: Txemi Jendrix
Date: 29 Mar 2006 15:39:46
Message: <442af091@news.povray.org>
Roman Reiner wrote:

> "Philip" <Phi### [at] yahoocom> wrote:
>> Hi,
>>
>> since I use the intersection command with planes, i can't give each plane
>> it's own color(what would solve my problem, i think).I've tried that, and
>> got back an error :(
Why not use a difference to obtain the results you want?
Using your sample:
> [snip]

difference {
box {
  ...
     pigment { ... } // doesn't matter what

plane {
  ...
     pigment { ... }
   }
   plane {
     ...
     pigment { ... }
   }
   plane {
     ...
     pigment { ... }
   }
   ...
 }

I didn't try it, it's a thought.

> intersection {
>   plane {
>     ...
>     pigment { ... }
>   }
>   plane {
>     ...
>     pigment { ... }
>   }
>   plane {
>     ...
>     pigment { ... }
>   }
>   ...
> }
> 
> Regards Roman

Bye
-- 
Txemi Jendrix.
Povray and CG: www.txemijendrix.com
Music: www.losmiercoles.net


Post a reply to this message

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