1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00
This commit is contained in:
Justin Lin
2019-09-19 17:53:11 +08:00
parent 5e86912b2e
commit 7dcf44cd67

View File

@@ -24,9 +24,9 @@ module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
function xy_to_index(x, y, columns) = y * columns + x;
top_pts = [
for(row_pts = points)
for(pt = row_pts)
pt
for(row_pts = points)
for(pt = row_pts)
pt
];
base_pts = [
@@ -72,14 +72,15 @@ module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
]
];
offset_v = [leng_pts, leng_pts, leng_pts];
base_tri_faces1 = [
for(face = top_tri_faces1)
__reverse(face) + [leng_pts, leng_pts, leng_pts]
__reverse(face) + offset_v
];
base_tri_faces2 = [
for(face = top_tri_faces2)
__reverse(face) + [leng_pts, leng_pts, leng_pts]
__reverse(face) + offset_v
];
side_faces1 = [