POV-Ray : Newsgroups : povray.newusers : General transformation of an object : Re: General transformation of an object Server Time
5 Oct 2024 15:42:51 EDT (-0400)
  Re: General transformation of an object  
From: clipka
Date: 2 Nov 2009 07:38:32
Message: <4aeed2c8$1@news.povray.org>
houmr schrieb:

> In fact the result of the transformation is kind of uneven shearing. The shear
> is along the y axis, but the value is proportional to the y coordinate. (If you
> imagine a cube, the angle formed by upper side and the z axis is about twice of
> the angle formed by the bottom side and the z axis. So the sheared box becomes
> wider on one side and narrower on the other side. All the faces remain planar).
> I need to use this transformation to compensate a distortion involved by an
> optical system while projecting the rendered images. Since the models are of
> arbitrary and real sceneries, I doubt being able to convert it to isosurfaces.

If the faces really remain planar, you can create the desiered shape 
using...

(a) an intersection of planes (Warning: Does not bound properly!)

(b) an intersection of well-sized boxes

(c) a prism object

...

to name just the first three ideas that cross my mind.


Post a reply to this message

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