POV-Ray : Newsgroups : povray.newusers : Constraining objects : Re: Constraining objects Server Time
5 May 2024 10:18:48 EDT (-0400)
  Re: Constraining objects  
From: Thomas de Groot
Date: 17 Feb 2015 03:17:19
Message: <54e2f90f@news.povray.org>
On 17-2-2015 6:46, Vincent99 wrote:
> *************************************************************
> #declare saddle=function{1*pow(y,2)- pow(x/1.8,2)+z }
>
> isosurface {
>      function { saddle( x,y,z)}
>        contained_by {  sphere { <0, 0, 0>, 5} //box {<-3,-2,-10>, <3,2,10>   }
>    // clipped_by { sphere{ o, 1 scale<Rx,Ry,Rz> rotate <0,0,-70> inverse} }
>                }
>    threshold 0
>    accuracy .05
>    max_gradient 3227
>   open
>    material {
>          texture {
>            pigment { color rgbf <0.98, 1.0, 0.99, 0.75> }
>            finish { F_Glass4 }
>                  }
>          interior {I_Glass caustics .1}
>                  }
>
>    rotate <0,0,-70>
>              }
> ******************************************************************
>
Clipped_by{} should not be /inside/ contained_by{}. Instead put it 
/after/ open.

-- 
Thomas


Post a reply to this message

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