1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

support 3d point

This commit is contained in:
Justin Lin
2020-02-19 14:01:06 +08:00
parent 63bc668d51
commit 5d2fc04705

View File

@@ -11,6 +11,6 @@ function tf_x_twist(size, point, angle) =
ylen = size[1],
y_offset = ylen / 2,
a_step = angle / xlen,
y_centered = [point[0], point[1], 0] + [0, -y_offset, 0]
y_centered = [point[0], point[1], is_undef(point[2]) ? 0 : point[2]] + [0, -y_offset, 0]
)
rotate_p(y_centered, [point[0] * a_step, 0, 0]) + [0, y_offset, 0];