POV-Ray : Newsgroups : povray.general : bug with spline in function : Re: bug with spline in function Server Time
27 Apr 2024 05:29:09 EDT (-0400)
  Re: bug with spline in function  
From: ABX
Date: 12 Aug 2002 05:00:07
Message: <c4ueluk767m3522ukdq1e7h5gba0juno3e@4ax.com>
On Mon, 12 Aug 2002 10:51:40 +0200, ABX <abx### [at] babilonorg> wrote:
> The same appear when function of spline is used in
> isosurface.

Here is sample script for isosurface case. So, any confirmation of this bug ?

<SDL>
  #version 3.5;

  #include "functions.inc"

  #declare Spline=spline{linear_spline -1 0 0 1 1 0};
  #declare f_Spline=function{spline{Spline}};
  #declare f_Imitation=function(Y){max(1-abs(Y),0)};

  union{
    // how it looks - it differs between renders
    isosurface{
      function{f_r(x,0,z)-f_Spline(y).x}
      contained_by{sphere{0 1}}
      translate x
    }
    // how it should look - it should be "glued cones"
    isosurface{
      function{f_r(x,0,z)-f_Imitation(y)}
      contained_by{sphere{0 1}}
      translate -x
    }
    pigment{rgb 1}
    translate z*3
  }
  light_source{1e3*<-9,-5,-9> 1}
  background{1}
</SDL>

ABX


Post a reply to this message

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