1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00
This commit is contained in:
Justin Lin
2020-10-26 13:05:34 +08:00
parent 08085b60c4
commit ca2c5bffe7

View File

@@ -7,15 +7,19 @@ font_name = "Liberation Sans:style=Bold";
font_size = 2.5; font_size = 2.5;
$fn = 48; $fn = 48;
archimedean_text_sphere(radius, font_name, font_size); bauer_text_sphere(radius, font_name, font_size);
module archimedean_text_sphere(radius, font_name, font_size) { module bauer_text_sphere(radius, font_name, font_size) {
n = len(txt); n = len(txt);
pts = bauer_spiral(n, radius); pts = bauer_spiral(n, radius);
render() render()
sphere(radius * 0.9); sphere(radius * 0.9);
/*
Based on Bauer's spiral:
Bauer R. Distribution of points on a sphere with application to star catalogs. Journal of Guidance, Control, and Dynamics. 2000;23(1):130137
*/
for(i = [0:n - 1]) { for(i = [0:n - 1]) {
x = pts[i][0]; x = pts[i][0];
y = pts[i][1]; y = pts[i][1];