2020-05-20 17:11:06 +08:00
|
|
|
# vx_circle
|
|
|
|
|
|
|
|
Returns points that can be used to draw a voxel-style circle.
|
|
|
|
|
|
|
|
**Since:** 2.4
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `radius` : The circle radius. The value must be an integer.
|
|
|
|
- `filled` : Default to `false`. Set it `true` if you want a filled circle.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
use <voxel/vx_circle.scad>;
|
|
|
|
|
|
|
|
for(pt = vx_circle(10)) {
|
|
|
|
translate(pt)
|
|
|
|
square(1, center = true);
|
|
|
|
}
|
|
|
|
|
2021-02-24 21:09:54 +08:00
|
|
|

|
2020-05-20 17:11:06 +08:00
|
|
|
|
|
|
|
use <voxel/vx_circle.scad>;
|
|
|
|
|
|
|
|
for(pt = vx_circle(10, filled = true)) {
|
|
|
|
translate(pt)
|
2022-03-30 09:39:11 +08:00
|
|
|
linear_extrude(1, scale = 0.5)
|
|
|
|
square(1, center = true);
|
2020-05-20 17:11:06 +08:00
|
|
|
}
|
|
|
|
|
2021-02-24 21:09:54 +08:00
|
|
|

|
2020-05-20 17:11:06 +08:00
|
|
|
|