5.4.1 Isosurface

A general method of describing an object is by an equation as implicitly given surface, called isosurface in Pov-Ray. Its syntax is
ISOSURFACE:
  isosurface { FLOAT_USER_FUNCTION [ISOSURFACE_ITEMS]
    [OBJECT_MODIFIERS] }

ISOSURFACE_ITEMS:
  [contained_by { CONTAINER }] & [threshold FLOAT] 
    & [accuracy FLOAT] & [max_gradient FLOAT 
    [evaluate MIN_ESTIMATE, MAX_ESTIMATE, 
    ATTENUATION]] & [open] & [INTERSECTION_LIMIT]

CONTAINER:
  sphere { CENTER, RADIUS } | 
	box { CORNER1, CORNER2 }

INTERSECTION_LIMIT:
  max_trace INT | all_intersections
See also:

It is given as

$\displaystyle \{\langle X,Y,Z\rangle:$ FLOAT$\displaystyle (X,Y,Z)=$THRESHOLD    
  $\displaystyle \text{ for all }(X,Y,Z)\in\text{CONTAINER}. \}$    

The FLOAT_USER_FUNCTION is a user defined function $ f$ which returns some float value for any point $ \langle X,Y,Z\rangle$ in 3d-space. Note that mathematically we can guarantee (by the implicit function theorem) that the corresponding surface $ f^{-1}($THRESHOLD$ )$ is non-singular only in points $ P$, where $ f$ is $ C^1$ and the derivative $ f'(P)$ is non-vanishing.

With the optional CONTAINER one can restrict the object to a box or sphere. The other optional parameters control the numeric process used in solving the implicit equation.

Andreas Kriegl 2003-07-23