Iso Surface SOP

From TouchDesigner 088 Wiki

Summary

The Iso Surface SOP uses implicit functions to create 3D visualizations of isometric surfaces found in Grade 12 Functions and Relations textbooks.

An implicit function is defined so that it = 0. For example with:

x2 + y2 = r2

the implicit function is:

f(x, y) = x2 + y2 - r2 =0

PythonIcon.png isosurfaceSOP_Class

Parameters

Implicit Function /func - Enter the function for implicit surface building here.

 Example 1: ($X*$X) / (4*4) - ($Y*$Y) / (3*3) + $Z

This formula creates a hyperbolic paraboloid, or saddle shape.

 Example 2: ($X*$X) / (a*a) + ($Y*$Y) / (b*b) + ($Z*$Z) / (c*c) - 1

This formula creates an ellipsoid.

Try loading some of the sample functions in $TFS/touch/presets.

Minimum Bound /minx /miny /minz - Determines the minimum clipping plane boundary for display of iso surface.

Maximum Bound /maxx /maxy /maxz - Determines maximum clipping plane boundary for display of iso surfaces.

Divisions /divsx /divsy /divsz - The density, or resolution of the iso surface polygons in X, Y and Z.

Inputs / Geometry Types

Creates polygons only.

Local Variables

$X $Y $Z - Represents the variables X, Y, and Z. in the equations.


Example

The action of the Iso Surface sop is conceptually simple - it takes a user specified expression in R3 (a mathematical term meaning, "having three dimensions, each taking a Real value), and creates a surface where the function goes from being positive to being negative. In the case of the default expression ( $X2 + $Y2 + $Z2 ), the expression is less than zero within a unit sphere, and greater than zero outside. As the sop cooks, it marches through the bounding volume specified (by default from -1 to +1 in X, Y and Z), and creates geometry where the expression equals zero.

This may seem like a difficult way to define a sphere, but there's much potential beyond this simple example using the rich array of mathematical functions (see the Expressions section). A simple illustration is with the noise() function. Try inputing the following expression. TouchGeometry20.gif