2019-07-04 14:46:40 +08:00
|
|
|
# px_sphere
|
|
|
|
|
|
|
|
Returns points that can be used to draw a pixel-style sphere.
|
|
|
|
|
|
|
|
**Since:** 2.0
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `radius` : The radius of the sphere. The value must be an integer.
|
|
|
|
- `filled` : Default to `false`. Set it `true` if you want a filled sphere.
|
|
|
|
- `thickness`: Default to 1. The thickness when `filled` is `false`. The value must be an integer.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2020-01-28 17:51:20 +08:00
|
|
|
use <pixel/px_sphere.scad>;
|
2019-07-04 14:46:40 +08:00
|
|
|
|
|
|
|
for(pt = px_sphere(10)) {
|
|
|
|
translate(pt)
|
|
|
|
cube(1, center = true);
|
|
|
|
}
|
|
|
|
|
|
|
|

|