Library for rendering level surfaces and implicit functions in OpenSCAD
Level surfaces utilizes the rendering capabilities of the 3D modeling language OpenSCAD to graph any implicit surface as well as level surfaces over time.
Add $t to f(x, y, z)
function f(x, y, z) = pow(x, 2) + pow(y, 2) - pow(z, 2) - 10 + 20 * $t;
Move the camera where you want to be in the animation or use the built in variables to set the camera location
ffmpeg -framerate 60 -i frame%05d.png video-name.gif
The rendering system uses a Marching Cubes algorithm to take points from the function and translate them to a 3D model. This works by extracting data points from the function and then creating a polygonal mesh field based on the cube’s intersections.
Several algorithms for tracing 3D objects exist. These methods (sphere tracing, marching cubes, level set, dual contouring, etc) extract points to express density or orientation of points.