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

add tf_ring

This commit is contained in:
Justin Lin
2020-02-13 14:11:39 +08:00
parent 57e3facaa9
commit 92d57a0312

View File

@@ -0,0 +1,10 @@
use <rotate_p.scad>;
use <experimental/tf_y_twist.scad>;
function tf_ring(size, point, radius, angle, twist = 0) =
let(
yleng = size[1],
a_step = angle / yleng,
twisted = tf_y_twist(size, point, twist)
)
rotate_p([radius + twisted[0], 0, twisted[2]], a_step * twisted[1]);