POV-Ray : Newsgroups : povray.newusers : Reflection across a plane.. : Re: Reflection across a plane.. Server Time
28 Jul 2024 16:27:31 EDT (-0400)
  Re: Reflection across a plane..  
From: Chris B
Date: 2 Jul 2008 12:21:03
Message: <486baaef$1@news.povray.org>
"Kalloran" <nomail@nomail> wrote in message 
news:web.486ba53f166e4d9d1143938a0@news.povray.org...
> Been playing with various aspects of POV-ray: manipulations of simple 
> geometric
> shapes and such.  The one BASIC geometric transformation that I cannot 
> find a
> command for is reflection.  The simple reflection of a geometric shape 
> across a
> plane.  For instance, I'm if I'm creating a complex, but symmetrical 
> object,
> should I not be able to only create half then reflect it across, say, the 
> xy
> plane?  Any help in locating this command (if it exists) would be awesome.
> Thanks.

You can scale using a negative number, so:

  object {MyCSGObject scale <-1,1,1>}

creates a copy of your object mirrored in the YZ plane and scale <1,1,-1> 
will mirror in the XY plane

ps. 'reflection' tends to refer to the 'finish' attribute in a texture 
definition with POV-Ray.

Regards,
Chris B.


Post a reply to this message

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