POV-Ray : Newsgroups : povray.unofficial.patches : Iso help please : Re: Iso help please Server Time
6 Oct 2024 12:34:37 EDT (-0400)
  Re: Iso help please  
From: Christoph Hormann
Date: 26 Jul 2001 08:52:42
Message: <3B601308.94C7E5C2@gmx.de>
Tom Melly wrote:
> 
> With the following shape, I want to flatten the point on the left side and
> sharpen the point on the right side - any suggestions how to do this?
> 

I must say this function seems rather obscure to me, but how about:

function {
  (-(x+3)/7+abs((x+3)/16))^2  
  + (y-abs(y/4))^2 
  + (z/3)^2
  - 1
}

I personally would use a combination of two ellipsoid functions rather
than this.

something like:

#declare fn_ellipsoid=
function { 
  sqrt(x^2 + y^2 + z^2)-1
}

isosurface{ 
  function {  
    (fn_ellipsoid(x*1.0, y, z)) |
    (fn_ellipsoid(x*0.2, y, z) & (-x))
  }
...
 

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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