POV-Ray : Newsgroups : povray.binaries.images : pb with difference and isosurface Server Time
15 Nov 2024 04:19:27 EST (-0500)
  pb with difference and isosurface (Message 1 to 3 of 3)  
From: JC (Exether)
Subject: pb with difference and isosurface
Date: 19 Sep 2003 14:14:23
Message: <3f6b477f@news.povray.org>
// I'm substracting a isosurface from a sphere and I don't get the
// expected result. Image 1 is what I get, and image 2 is what I expect.
// The code for image 1 follows, does anyone know what I do wrong or if
// it's a bug or unsupported feature ?
// Thanks

#version 3.5;

#include "functions.inc"

global_settings { assumed_gamma 1.0 }

camera {
   location  <0.0, 2.5, -4.0>
   direction 1.5*z
   right     x*image_width/image_height
   look_at   <0.0, 0.0,  0.0>
}

background { color rgb <0.2,0.4,0.5> }

light_source { <20, 15, -30> color rgb 1 }

difference {
   sphere {
     0.0, 1
   }

   isosurface {
     function { f_sphere (x, y, z, 0.7) }
     contained_by { box { -1.2, 1.2 } }
     accuracy 0.001
     max_gradient 8
     translate <0.3,0.5,-0.5>
   }

   pigment { rgb <1,1,1> }

   rotate 30*y
}

cylinder { <0,-2,0>, <0,2,0>, 0.1 pigment { rgb <0,0,1> } }


Post a reply to this message


Attachments:
Download 'sphere_substr1.png' (10 KB) Download 'sphere_substr2.png' (13 KB)

Preview of image 'sphere_substr1.png'
sphere_substr1.png

Preview of image 'sphere_substr2.png'
sphere_substr2.png


 

From: Slime
Subject: Re: pb with difference and isosurface
Date: 19 Sep 2003 15:00:20
Message: <3f6b5244$1@news.povray.org>
Use the all_intersections keyword (or max_trace 2), so that POV-Ray notices
all of the surfaces on your isosurface, instead of just the first one it
encounters. I suspect that will do the trick.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: JC (Exether)
Subject: Re: pb with difference and isosurface
Date: 19 Sep 2003 18:13:13
Message: <3f6b7f79$1@news.povray.org>
Here we go !! Thanks very much.
I should have posted to newusers, but I had an image ... :-)

JC

Slime wrote:
> Use the all_intersections keyword (or max_trace 2), so that POV-Ray notices
> all of the surfaces on your isosurface, instead of just the first one it
> encounters. I suspect that will do the trick.
> 
>  - Slime
>  [ http://www.slimeland.com/ ]
> 
>


Post a reply to this message

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