|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |