1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

add comment

This commit is contained in:
Justin Lin
2021-11-29 10:01:00 +08:00
parent 55e64dcb53
commit 39cbc9a069

View File

@@ -34,6 +34,8 @@ translate([0, 30, 0])
*/
// based on Lemniscate of Gerono https://en.wikipedia.org/wiki/Lemniscate#Lemniscate_of_Gerono
function lemniscate_curve(t_step, a = 2, b = 1, c = 1) =
[
for(t = [0:t_step:360 - t_step])
@@ -41,5 +43,5 @@ function lemniscate_curve(t_step, a = 2, b = 1, c = 1) =
sint = sin(t),
cost = cos(t)
)
[a * sint, b * sint * cost, c * cost]
[a * sint, b * sint * cost , c * cost]
];