1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-bauer_spiral.md
2022-06-06 13:11:46 +08:00

36 lines
1.0 KiB
Markdown

# 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.)
**Since:** 2.5
## 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 <polyline_join.scad>
n = 200;
radius = 20;
pts = bauer_spiral(n, radius);
for(p = pts) {
translate(p)
sphere(1, $fn = 24);
}
polyline_join(pts)
sphere(.5);
![bauer_spiral](images/lib3x-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/lib3x-bauer_spiral-2.JPG)