1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-22 14:23:23 +02:00
This commit is contained in:
Justin Lin
2020-12-14 17:26:23 +08:00
parent 14529f3393
commit b6eb4bf606
5 changed files with 46 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

View File

@@ -0,0 +1,33 @@
# bauer_spiral
Creates visually even spacing of n points on the surface of the sphere. Successive points will all be approximately the same distance apart.
(It's called "visually even spacing" because only the vertices of the 5 [Platonic solids](https://en.wikipedia.org/wiki/Platonic_solid) can be said to be truly evenly spaced around the surface of a sphere.)
## Parameters
- `n` : The number of points.
- `radius` : The sphere radius. Default to 1.
- `rt_dir` : `"CT_CLK"` for counterclockwise. `"CLK"` for clockwise. The default value is `"CT_CLK"`.
## Examples
use <bauer_spiral.scad>;
use <hull_polyline3d.scad>;
n = 200;
radius = 20;
pts = bauer_spiral(n, radius);
for(p = pts) {
translate(p)
sphere(1, $fn = 24);
}
hull_polyline3d(pts, 1);
![bauer_spiral](images/lib2x-bauer_spiral-1.JPG)
You can use it to create [Text sphere](https://cults3d.com/en/3d-model/art/bauer-text-sphere).
![bauer_spiral](images/lib2x-bauer_spiral-2.JPG)