Function Grapher

par JustinSDK

Fichiers imprimables (2)

  • stl

    function_grapher_faces.stl

    1.1 Mo · 688 téléchargements

  • stl

    function_grapher_lines.stl

    112.4 Mo · 677 téléchargements

Description

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.

include <line3d.scad>;include <polyline3d.scad>;include <function_grapher.scad>;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)]        ]];function_grapher(points, thickness);

For more information, please take a look at dotSCAD.

Tags