POV-Ray : Newsgroups : povray.general : CSG difference of isosurfaces : Re: CSG difference of isosurfaces Server Time
26 Apr 2024 21:40:55 EDT (-0400)
  Re: CSG difference of isosurfaces  
From: omniverse
Date: 12 Nov 2016 09:35:00
Message: <web.58272854edf187fc9c5d6c810@news.povray.org>
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>}}
           }


Post a reply to this message

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