1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 02:59:42 +01:00
This commit is contained in:
Justin Lin 2021-02-10 07:44:31 +08:00
parent 050acfd524
commit c12666f048

View File

@ -192,19 +192,19 @@ module function_grapher(points, thickness, style = "FACES") {
if(style == "LINES") {
section = shape_circle(radius = half_thickness);
for(row = points) {
path_extrude(section, row, method = "AXIS_ANGLE");
path_extrude(section, row);
}
for(x = [0:columns - 1]) {
path_extrude(section, [for(y = [0:rows - 1]) points[y][x]], method = "AXIS_ANGLE");
path_extrude(section, [for(y = [0:rows - 1]) points[y][x]]);
}
for(c = [0:columns - 2]) {
path_extrude(section, [for(r = [0:rows - 1 - c]) points[r + c][r]], method = "AXIS_ANGLE");
path_extrude(section, [for(r = [0:rows - 1 - c]) points[r + c][r]]);
}
for(c = [0:columns - 2]) {
path_extrude(section, [for(r = [0:rows - 1 - c]) points[r][r + c]], method = "AXIS_ANGLE");
path_extrude(section, [for(r = [0:rows - 1 - c]) points[r][r + c]]);
}
}
else {