POV-Ray : Newsgroups : povray.advanced-users : shearing isosurfaces : Re: shearing isosurfaces Server Time
28 Jul 2024 18:23:40 EDT (-0400)
  Re: shearing isosurfaces  
From: Slime
Date: 18 May 2004 22:40:01
Message: <40aac901@news.povray.org>
> I need to shear an isosurace by using
> some sort of function before blobbing the isosurface

To shear a function along an axis, just replace one of the axis variables
(y, for instance), with the same variable offset by a different variable
(y+C*x). For example, take the unit sphere function:

x*x + y*y + z*z - 1

By replacing y with y+2*x, we can bring the right side of the sphere down
and the left side up:

x*x + (y+2*x)*(y+2*x) + z*z - 1

Try rendering it and see the results.

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


Post a reply to this message

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