POV-Ray : Newsgroups : povray.advanced-users : Unregular Scaling of an object : Re: Unregular Scaling of an object Server Time
28 Jul 2024 12:38:00 EDT (-0400)
  Re: Unregular Scaling of an object  
From: Slime
Date: 2 Aug 2005 17:58:01
Message: <42efec69@news.povray.org>
> I have a box, bottom on Y=0 and top on Y=1. I want to scale the box along
> the Z-axis, but in a way that the top of the box (at Y=1) is scaled by the
> factor of 2, and the bottom of the box (at Y=0) by the factor of 1 (no
> scale).

This can't be done directly in POV-Ray. POV-Ray only supports linear
transformations, which basically means (for your example) that if the far
side of the box is diagonal, the near side of the box is going to be
diagonal too. You can't do an "uneven scaling."

If you're really only concerned about boxes, then the shape you described
could be made instead with CSG. If you're working with more complex shapes,
you may have to model them as an isosurface, since you *can* apply any sort
of transformation you want to an isosurface function.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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