1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00

use middle point

This commit is contained in:
Justin Lin
2021-05-22 12:24:02 +08:00
parent 22c6174812
commit 623c24c66b

View File

@@ -32,7 +32,7 @@ module sf_curve(levels, points, thickness, depth, invert = false) {
for(y = [0:rows - 1])
[
for(x = [0:columns - 1])
let(p = pts[x])
let(p = (pts[x] + pts[x + 1]) / 2)
[p[0], y, p[2]] + normal_vts[x] * s[y][x][2]
]
];