POV-Ray : Newsgroups : povray.beta-test : [linux RC6] simple isosurface scene causes seg fault : internal (was: [linux RC6] simple isosurface scene causes seg fault) Server Time
29 Jul 2024 08:12:41 EDT (-0400)
  internal (was: [linux RC6] simple isosurface scene causes seg fault)  
From: Felix Wiemann
Date: 25 Jun 2002 14:25:18
Message: <3d18b58e@news.povray.org>
Felix Wiemann wrote:

> Yes, it works fine with #include "functions.inc".
> 
> It seems to be necessary to use any internal function.

Btw, this works:

// BEGIN
camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   #declare F = function { internal(0) }
   function { abs(x)+abs(y)+abs(z) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}
// END

But this doesn't:

// BEGIN
camera { location <0,2,-3> look_at <0,0,0> }

light_source { <50,100,-100> rgb 1 }

isosurface {
   function { abs(x)+abs(y)+abs(z) }
   #declare F = function { internal(0) }
   contained_by { box { <-3,0,-3>, <3,0.5,3>} }
   threshold 1.3
   max_gradient 2
   pigment { rgb <1,0,0> }
}
// END

The internal function has to be declared before the function keyword.
-- 
Felix Wiemann


Post a reply to this message

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