POV-Ray : Newsgroups : povray.beta-test : isosurface bug Server Time
3 Nov 2024 18:07:48 EST (-0500)
  isosurface bug (Message 1 to 7 of 7)  
From: Sigmund Kyrre Aas
Subject: isosurface bug
Date: 5 Sep 2001 15:13:50
Message: <abucpt89se7ck11gmj7hcv8f9643su0kth@4ax.com>
Parts of the contained_by box shows up in this scene.

My system: Duron 700@900 Duron, 512 SDRAM.
Pov version 3.5 beta 1 on Windows 2000. 
The iso appears as expected in MegaPov 0.7

#declare S=.4;  // setting this to less than .5 gives strange results
#declare L=.5;  // setting this to 0 still produces artifacts
isosurface {
    function { L*sqrt(cos(x/S)) + y^2+z^2 }
    threshold 1
    max_gradient 10.77
    accuracy 0.01
    contained_by{box{-<.8,1,1>,<.8,1,1>}} 
    pigment { rgb 1 }
}
light_source { 5,1} 
background{rgb 1}
camera {location  2 look_at 0} 
-- 
ICQ 74734588


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: isosurface bug
Date: 5 Sep 2001 15:37:40
Message: <3b967f04@news.povray.org>
In article <abucpt89se7ck11gmj7hcv8f9643su0kth@4ax.com> , Sigmund Kyrre Aas
<as### [at] studntnuno>  wrote:

> Parts of the contained_by box shows up in this scene.

OK, so increase the size of the bounding box!  What is want with that?

    Thorsten


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: isosurface bug
Date: 5 Sep 2001 18:18:23
Message: <149dpt01qbu5l4oro6b4mv2c7k1s6va00n@4ax.com>
On Wed, 05 Sep 2001 15:37:35 -0400, "Thorsten Froehlich" >
>OK, so increase the size of the bounding box!  What is want with that?

Err, not sure what you mean.. bounding is done automatically. 
-- 
ICQ 74734588


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: isosurface bug
Date: 5 Sep 2001 18:30:07
Message: <3b96a76f@news.povray.org>
In article <149dpt01qbu5l4oro6b4mv2c7k1s6va00n@4ax.com> , Sigmund Kyrre Aas
<as### [at] studntnuno>  wrote:

>>OK, so increase the size of the bounding box!  What is want with that?
>
> Err, not sure what you mean.. bounding is done automatically.

Well, "contained_by" used to be called "bounded_by" and in some way it
bounds the function to a a limited space.  Anyway, what i meant was that you
should change the container box.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: isosurface bug
Date: 5 Sep 2001 18:39:55
Message: <3b96a9bb$1@news.povray.org>
In article <149dpt01qbu5l4oro6b4mv2c7k1s6va00n@4ax.com> , Sigmund Kyrre Aas
<as### [at] studntnuno>  wrote:

>> What is want with that?
>
> Err, not sure what you mean..

PS: Sorry for the cryptic sentence, but occasionally I don't pay attention
to the words my spell-checker suggests - "want" should be "wrong"...

    Thorsten


Post a reply to this message

From: Nathan Kopp
Subject: Re: isosurface bug
Date: 5 Sep 2001 19:44:41
Message: <3b96b8e9$1@news.povray.org>
"Sigmund Kyrre Aas" <as### [at] studntnuno> wrote...

> #declare S=.4;  // setting this to less than .5 gives strange results
> #declare L=.5;  // setting this to 0 still produces artifacts

>     function { L*sqrt(cos(x/S)) + y^2+z^2 }

>     contained_by{box{-<.8,1,1>,<.8,1,1>}}

Please note that "cos(0.64 / 0.4)" is less than one.  This occurs well
within your contained_by box, which ranges from x=-0.8 to x=0.8.

Taking the square root of a negative number is not defined in real number
space.  This is the source of your problem.

-Nathan


Post a reply to this message

From: Sigmund Kyrre Aas
Subject: Re: isosurface bug
Date: 6 Sep 2001 04:39:07
Message: <r3bept0v7qhfebpjt6rr795hd7d17u9n4h@4ax.com>
On Wed, 5 Sep 2001 19:45:30 -0400, "Nathan Kopp" <nat### [at] koppcom>
wrote:

>Taking the square root of a negative number is not defined in real number
>space.  This is the source of your problem.

Right, thanks. I added abs() and now it renders fine. Sorry to bother
y'all with this.

sig
-- 
ICQ 74734588


Post a reply to this message

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