POV-Ray : Newsgroups : povray.unofficial.patches : Re: odd iso-surface problem : Re: odd iso-surface problem Server Time
1 Sep 2024 12:22:27 EDT (-0400)
  Re: odd iso-surface problem  
From: David Wilkinson
Date: 30 Apr 2001 09:53:53
Message: <4qqqet4pnc4v2rqjfr6h57a37q71brgm9d@4ax.com>
On Sun, 29 Apr 2001 23:12:44 -0400, "Quadhall" <tre### [at] ww-interlinknet> wrote:
>
>#declare scaler=(3^.5)/2;
>#declare checko=function{x+abs(y)*scaler}
>#declare final_function=function{checko}
>
In your code the abs function should include scaler.  With a bit of trial and error I
came up
with the following which works;

#declare scaler=(3^.5)/3;
#declare checko=function{x+abs(y*scaler)}

Rendering this results in a nasty where the two isos join on the x-axis.  This is an
old
problem (not related to isos) and can be worked around by a small rotation. i.e.

union {
object{looper}
object{looper rotate <0,0,120>}
object{looper rotate <0,0,-120>}
rotate z
}

I leave it to the mathematically unchallenged to explain it all :-)

David
----------------------
dav### [at] hamiltonitecom
http://hamiltonite.com/


Post a reply to this message

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