POV-Ray : Newsgroups : povray.newusers : Scaling question... : Scaling question... Server Time
30 Jul 2024 16:16:30 EDT (-0400)
  Scaling question...  
From: Carl Hoff
Date: 25 Nov 2003 20:24:54
Message: <3fc400e6@news.povray.org>
Can anyone help me out here?

I'm trying to scale a shape in the z-direction but I want the scaling factor
to be a function of x.
Say for example I have the following cone:

cone {<0,0,0>, 5 <10,0,0>, 20}

And I want to take this shape and scale the such that the left (looking in
from -z) of the cone is scaled by 2*z and the right by 0.5*z so that when
viewed from above (the +y direction) the crosssection is a rectangle with
sides at + and - 10*z.

So far I haven't been able to insert a function into a scale command or a
matrix command.  This may be just a syntax question but I've been unable to
find my answer in the documentation.  I'd like to be able to do something
like:

 scale <1,1, -0.15*x+2>

Thanks if you can point me in the correct direction,
Carl


Post a reply to this message

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