From 5d2fc047056634d2d8060e9942a1abb9d8317d15 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 19 Feb 2020 14:01:06 +0800 Subject: [PATCH] support 3d point --- src/experimental/tf_x_twist.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experimental/tf_x_twist.scad b/src/experimental/tf_x_twist.scad index faae1da4..2d2f6648 100644 --- a/src/experimental/tf_x_twist.scad +++ b/src/experimental/tf_x_twist.scad @@ -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]; \ No newline at end of file