POV-Ray : Newsgroups : povray.advanced-users : Using Conditional statements with Isosurfaces (Help) : Re: Using Conditional statements with Isosurfaces (Help) Server Time
28 Jul 2024 22:28:56 EDT (-0400)
  Re: Using Conditional statements with Isosurfaces (Help)  
From: Christoph Hormann
Date: 11 Oct 2003 13:09:44
Message: <v0ql51-nji.ln1@triton.schunter.etc.tu-bs.de>
Rob Richards wrote:
> [...]

ingo's tip is the most efficient solution, alternatively you can also use:

function{
   f_base(x,y,z)
   -(y>0.5)*f_detail_1(x,y,z)*.15
   -(y<=0.5)*f_detail_2(x,y,z)*.15
}

You should also note that f_detail_1 and f_detail_2 will have to return 
the same value on the y=0.5 plane, otherwise you will have a function 
with infinite gradient.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 2 Sep. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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