mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 22:37:35 +02:00
refactor
This commit is contained in:
@@ -192,19 +192,19 @@ module function_grapher(points, thickness, style = "FACES") {
|
|||||||
if(style == "LINES") {
|
if(style == "LINES") {
|
||||||
section = shape_circle(radius = half_thickness);
|
section = shape_circle(radius = half_thickness);
|
||||||
for(row = points) {
|
for(row = points) {
|
||||||
path_extrude(section, row, method = "AXIS_ANGLE");
|
path_extrude(section, row);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(x = [0:columns - 1]) {
|
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]) {
|
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]) {
|
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 {
|
else {
|
||||||
|
Reference in New Issue
Block a user