|
|
Wasn't it Stefan Viljoen who wrote:
>Hi all.
>
>What am I doing wrong:
>
>#declare meshfunc = function{f_mesh1(x,y,z,0.2,0.2,0.3,0.4,0.5)}
>
>isosurface
>{
> function {meshfunc(x,y,z)}
> threshold 1
>
> contained_by
> {
> box {-1,1}
> }
>
> material{texture{pigment{color White}}}
>}
>
>All this does is produce a white cube, sized 1x1x1. I can put any values
>from very small to large (0.01 to 10) into the function line, but it still
>only produces a white cube, instead of a mesh.
>
>What is wrong with my parameters or code structure here?
All that's happening is that with "threshold 1" the thickness of each
thread is larger than the contained_by box, so the box gets completely
filled. Try setting the threshold to a much smaller value, like 0.01
You will then also need to increase max_gradient.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|