POV-Ray : Newsgroups : povray.newusers : Spline : Spline Server Time
29 Jul 2024 16:25:03 EDT (-0400)
  Spline  
From: Oleguer Vilella
Date: 15 Jun 2005 11:10:29
Message: <42b044e5$1@news.povray.org>
Hi,

Can I modulate this isosurface using a linear_spline?

======================================
#declare S = function {
   spline {
     linear_spline
    -1.0, < 0.5, 0, 0>,
    -0.5, < 0,   0, 0>,
     0.01,< 0.2, 0, 0>,
     0.5, <-0.2, 0, 0>,
     1, <-0.2, 0, 0>
   }
 }


isosurface {
function { abs(S(x, y, z)) - Thickness  }
max_gradient 2
contained_by{box{ <-36, -20, 147> <280, 20, 150> }}
pigment { color Green}
finish { ambient 0.2 diffuse 0.8 phong 1 }
translate <10, -40, -116>}
======================================

Thanks in advance.

Regards,
Oleguer Vilella


Post a reply to this message

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