POV-Ray : Newsgroups : povray.newusers : A neat trick : A neat trick Server Time
5 Sep 2024 16:19:27 EDT (-0400)
  A neat trick  
From: Tyler Eaves
Date: 14 May 2000 09:50:01
Message: <391eaf09$1@news.povray.org>
Has there ever been a time when you have wanted to create a mirror image of
an object? It's easy. Here is a simple example:

#declare foo=union{
// Your Objects Here
}
object{foo}
object{foo scale <-1,1,1>}

This example will create a mirror image of object foo across the x-axis. The
key to this trick is the scale of -1 in the x axis component of the vector.
This will work in any axis. Just thought that some of the newbies here might
find this trick useful.

Tyler


Post a reply to this message

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