POV-Ray : Newsgroups : povray.general : CSG difference of isosurfaces : Re: CSG difference of isosurfaces Server Time
25 Apr 2024 22:31:34 EDT (-0400)
  Re: CSG difference of isosurfaces  
From: John Greenwood
Date: 13 Nov 2016 11:40:01
Message: <web.58289692edf187fca7cafab50@news.povray.org>
"omniverse" <omn### [at] charternet> wrote:
> I didn't try Clipka's method, did get the intended result with max_trace 5 (or
> all_intersections). It was lack of all_intersections I was thinking might be the
> problem. I'm not so good with isosurfaces.
> Also textured only the CSG difference to slim the SDL down, and bounding boxes
> trimmed down in size too.
>
>
> difference {
>
>   isosurface {
>      function  {
>
>          pow(x,2)+pow(y,2)+pow(z,2)-pow(1.1,2)
>             }
>      threshold 1
>       max_gradient 5
>      contained_by { box {<-2,-2,-2>, <2,2,2>} }
>                }
>
>   isosurface {
>      function  {
>
>          (pow(x,2)+pow(y,2)+pow(z,2)-pow(0.9,2))
>
>             }
>      threshold 1
>       max_gradient 5
>      contained_by { box {<-2,-2,-2>, <2,2,2>} }
>      max_trace 2
>      //all_intersections
>                }
>
>   box {<-2,0,0>,<2,2,-2>}
>
> texture {pigment {color rgb < 1, 0.9, 0.65>}}
>            }

That does the trick. I will go with max_trace 2 and watch out for problems as
things get more comlicated!

Thanks for the help.


Post a reply to this message

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