mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
support 3d point
This commit is contained in:
@@ -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];
|
Reference in New Issue
Block a user