|
|
On 14 Feb 2000 16:55:33 -0500, ron### [at] povrayorg (Ron Parker) wrote:
>On Mon, 14 Feb 2000 15:24:56 -0500, Greg M. Johnson wrote:
>>> The docs for superpatch do not give any syntax at all on how to use
>>> the named functions as functions in isosurfaces.
>
>In case you can't look it up (but you should, because it's a useful
>thread) here's the syntax that works for me for the sphere function:
>
>isosurface { function { "Sphere" <1> } pigment { color red 1}}
>
You just beat me to the punch Ron :-)
The docs for MegaPov give the correct syntax for the named isosurface functions, but
MegaPov also requires
contained_by {}
in the isosurface definition.
e.g.
isosurface { function { "rounded_box" <.2> }
contained_by { }
pigment { Red}
}
In testing this with MegaPov I found a bug has been added since SuperPatch.
The size of the rounded box is determined by the size of contained_by !
With no value for contained_by you get a rounded box of unit sides. But;
contained_by { box {0,4}}
makes the rounded box of sides 4!
Ah well, it just goes to keep us on our toes :-)
----------------------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
----------------------------
Post a reply to this message
|
|