|
|
"Stefan Viljoen" <ryl### [at] intekomcoza> wrote in message
news:41547b10@news.povray.org...
>
> All this code does is to produce a solid white box, sized -1 1
> (obviously).
> Changing the values sent to f_mesh1 has no effect - from very small to
> very
> large still just produce a solid white box.
>
> How can I get a mesh with f_mesh1? What am I doing wrong? I've never used
> isosurfaces before.
Hi there Stefan.
And I'm new to f_mesh1(), not having used it anytime, that I know of.
Use first three values as x,y,z instead of 1,1,1, since each 1=x*y*z.
Looks like the threshold should be greater than zero, yet not much over
zero. I tried the following and it looked right to me, although I'm not
exactly sure what it should look like.
:-)
#include "colors.inc"
#include "functions.inc"
light_source {<-5,10,15>,1}
camera
{
location <1,2,3>
look_at <0,0,0>
}
isosurface
{
function {f_mesh1(x,y,z,0.1,0.2,0.05,0.15,0.15)}
threshold 0.005
max_gradient 0.5
contained_by
{
box {-1,1}
}
material{texture{pigment{color White}}}
}
Post a reply to this message
|
|