mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-22 14:23:23 +02:00
add tf_ring
This commit is contained in:
10
src/experimental/tf_ring.scad
Normal file
10
src/experimental/tf_ring.scad
Normal 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]);
|
Reference in New Issue
Block a user