POV-Ray : Newsgroups : povray.newusers : Newbie - inside/outside colours : Re: Newbie - inside/outside colours Server Time
28 Jul 2024 22:25:55 EDT (-0400)
  Re: Newbie - inside/outside colours  
From: Christian Froeschlin
Date: 5 Jun 2007 10:21:39
Message: <46657173@news.povray.org>
TheMightyZog wrote:

> The following is a U shaped pipe and I would like the inside to be White and
> the outside Yellow.  How can I do it?

Model the geometry both for the inside and the outside (your
pipe is bound to have some physical thickness), and make the
actual object the "difference" of outside - inside. To avoid
numeric problems (coincident surfaces), the "inside" pipe
should a bit longer than the "outside" pipe.

Depending on your geometry, you can often get away with using
a scaled down copy of the outer shape for the inner shape.


Post a reply to this message

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