POV-Ray : Newsgroups : povray.advanced-users : shearing isosurfaces : Re: shearing isosurfaces Server Time
28 Jul 2024 18:23:04 EDT (-0400)
  Re: shearing isosurfaces  
From: Warp
Date: 19 May 2004 08:04:24
Message: <40ab4d48@news.povray.org>
Slime <fak### [at] emailaddress> wrote:
> 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

  This is easier to do like this:

#declare SphereF = function { x*x + y*y + z*z -1 }

#declare Sheared = function { SphereF(x, y+2*x, z) }

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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