mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-24 17:42:44 +01:00
support 3d point
This commit is contained in:
parent
e046155b36
commit
63bc668d51
@ -11,6 +11,6 @@ function tf_y_twist(size, point, angle) =
|
||||
ylen = size[1],
|
||||
x_offset = xlen / 2,
|
||||
a_step = angle / ylen,
|
||||
x_centered = [point[0], point[1], 0] + [-x_offset, 0, 0]
|
||||
x_centered = [point[0], point[1], is_undef(point[2]) ? 0 : point[2]] + [-x_offset, 0, 0]
|
||||
)
|
||||
rotate_p(x_centered, [0, point[1] * a_step, 0]) + [x_offset, 0, 0];
|
Loading…
x
Reference in New Issue
Block a user