When remixing OpenSCAD Graph Generator ||, I remembered one thing I still didn't challenge. That is, using the built-in
polyhedron module to create a function graph.
This is a demonstration of the
function_grapher module in my library. It's easy to use. For example.
function f(x, y) =
30 * (
cos(sqrt(pow(x, 2) + pow(y, 2))) +
cos(3 * sqrt(pow(x, 2) + pow(y, 2)))
thickness = 2;
min_value = -200;
max_value = 200;
resolution = 10;
points = [
for(y = [min_value:resolution:max_value])
for(x = [min_value:resolution:max_value])
[x, y, f(x, y)]
For more information, please take a look at dotSCAD.
If you're interested in how to design a
function_grapher module, take a look at "Function grapher".