2020-05-20 17:11:06 +08:00
|
|
|
# vx_sphere
|
|
|
|
|
|
|
|
Returns points that can be used to draw a voxel-style sphere.
|
|
|
|
|
|
|
|
**Since:** 2.4
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
2022-06-06 13:11:46 +08:00
|
|
|
use <voxel/vx_sphere.scad>
|
2020-05-20 17:11:06 +08:00
|
|
|
|
|
|
|
for(pt = vx_sphere(10)) {
|
|
|
|
translate(pt)
|
|
|
|
cube(1, center = true);
|
|
|
|
}
|
|
|
|
|
2021-02-24 21:09:54 +08:00
|
|
|
![vx_sphere](images/lib3x-vx_sphere-1.JPG)
|