mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-19 04:51:26 +02:00
rename
This commit is contained in:
@@ -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):130–137
|
||||||
|
*/
|
||||||
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];
|
Reference in New Issue
Block a user