1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 19:19:47 +01:00

default to 1

This commit is contained in:
Justin Lin 2021-02-13 18:15:32 +08:00
parent 9b11296b43
commit ac2f95deb2
2 changed files with 2 additions and 2 deletions

@ -5,7 +5,7 @@ Given a list of points `[x, y, f(x, y)]` where `f(x, y)` is a mathematics functi
## Parameters ## Parameters
- `points` : A list of points `[x, y, f(x, y)]`. See examples below. - `points` : A list of points `[x, y, f(x, y)]`. See examples below.
- `thickness` : The face or line thickness. - `thickness` : The face or line thickness. Default to 1.
- `style` : The style of the graph. It accepts `"FACES"`, `"LINES"`, `"HULL_FACES"` and `"HULL_LINES"`. The default value is `"FACES"` which simply takes `f(x, y) - thickness` for each point to build a bottom. It may cause thickness problems when slopes is high. The `"HULL_FACES"` value can solve the problem but is slow. When assigning `"LINES"`, it uses lines to connect points. The `"HULL_LINES"` is very very slow; however, the model might look smoother if you have a small `$fn`. - `style` : The style of the graph. It accepts `"FACES"`, `"LINES"`, `"HULL_FACES"` and `"HULL_LINES"`. The default value is `"FACES"` which simply takes `f(x, y) - thickness` for each point to build a bottom. It may cause thickness problems when slopes is high. The `"HULL_FACES"` value can solve the problem but is slow. When assigning `"LINES"`, it uses lines to connect points. The `"HULL_LINES"` is very very slow; however, the model might look smoother if you have a small `$fn`.
- `$fa`, `$fs`, `$fn` : Used by the `circle` or `sphere` module internally. It affects the speed of rending. For example, a large `$fn` may be very slow when rending. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) or [the sphere module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#sphere) for more details. - `$fa`, `$fs`, `$fn` : Used by the `circle` or `sphere` module internally. It affects the speed of rending. For example, a large `$fn` may be very slow when rending. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) or [the sphere module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#sphere) for more details.

@ -13,7 +13,7 @@ use <hull_polyline3d.scad>;
use <path_extrude.scad>; use <path_extrude.scad>;
use <shape_circle.scad>; use <shape_circle.scad>;
module function_grapher(points, thickness, style = "FACES") { module function_grapher(points, thickness = 1, style = "FACES") {
rows = len(points); rows = len(points);
columns = len(points[0]); columns = len(points[0]);