POV-Ray : Newsgroups : povray.advanced-users : Unregular Scaling of an object : Re: Unregular Scaling of an object Server Time
28 Jul 2024 12:23:45 EDT (-0400)
  Re: Unregular Scaling of an object  
From: Alain
Date: 3 Aug 2005 19:14:53
Message: <42f14fed$1@news.povray.org>
Slime nous apporta ses lumieres en ce 2005-08-02 17:57:
>>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/ ]
> 
> 
I know! Once, I've done a inversely proportional scaling relative to a plane on an
isosurface.

Alain


Post a reply to this message

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