mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 05:52:16 +02:00
refactor
This commit is contained in:
@@ -24,9 +24,9 @@ module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
|
|||||||
function xy_to_index(x, y, columns) = y * columns + x;
|
function xy_to_index(x, y, columns) = y * columns + x;
|
||||||
|
|
||||||
top_pts = [
|
top_pts = [
|
||||||
for(row_pts = points)
|
for(row_pts = points)
|
||||||
for(pt = row_pts)
|
for(pt = row_pts)
|
||||||
pt
|
pt
|
||||||
];
|
];
|
||||||
|
|
||||||
base_pts = [
|
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 = [
|
base_tri_faces1 = [
|
||||||
for(face = top_tri_faces1)
|
for(face = top_tri_faces1)
|
||||||
__reverse(face) + [leng_pts, leng_pts, leng_pts]
|
__reverse(face) + offset_v
|
||||||
];
|
];
|
||||||
|
|
||||||
base_tri_faces2 = [
|
base_tri_faces2 = [
|
||||||
for(face = top_tri_faces2)
|
for(face = top_tri_faces2)
|
||||||
__reverse(face) + [leng_pts, leng_pts, leng_pts]
|
__reverse(face) + offset_v
|
||||||
];
|
];
|
||||||
|
|
||||||
side_faces1 = [
|
side_faces1 = [
|
||||||
|
Reference in New Issue
Block a user