POV-Ray : Newsgroups : povray.unofficial.patches : Help w/ syntax on library functions in isosurfaces. : Re: Help w/ syntax on library functions in isosurfaces. Server Time
2 Sep 2024 10:14:14 EDT (-0400)
  Re: Help w/ syntax on library functions in isosurfaces.  
From: David Wilkinson
Date: 14 Feb 2000 17:52:31
Message: <9lvgask6dua6qlhm8pk3rpgu3t7cv10b6q@4ax.com>
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

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