POV-Ray : Newsgroups : povray.newusers : A neat trick Server Time
5 Nov 2024 09:24:21 EST (-0500)
  A neat trick (Message 1 to 3 of 3)  
From: Tyler Eaves
Subject: A neat trick
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

From: Ken
Subject: Re: A neat trick
Date: 14 May 2000 22:30:55
Message: <391F60C3.9013DF51@pacbell.net>
Tyler Eaves wrote:

> Just thought that some of the newbies here might
> find this trick useful.
> 
> Tyler

Us oldbies know about it but you are correct in that it is a good
time saver if you just need to mirror an object.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Warp
Subject: Re: A neat trick
Date: 15 May 2000 04:53:28
Message: <391fbb08@news.povray.org>
Perhaps a good entry for the VFAQ (although I haven't seen it asked very
much, though).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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