1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 10:44:48 +02:00

add center

This commit is contained in:
Justin Lin
2022-07-21 20:23:57 +08:00
parent f732686823
commit 3b1c12247c

View File

@@ -10,7 +10,7 @@ function arc_great_circle(p1, p2, center = [0, 0, 0]) =
)
steps == 0 ? [p1, p2] :
let(a_step = a / steps)
[for(i = [0:steps]) ptf_rotate(p1, a_step * i, normal_vt)];
[for(i = [0:steps]) ptf_rotate(p1, a_step * i, normal_vt) + center];
/*
use <experimental/arc_great_circle.scad>