1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-polyhedra_octahedron.md

23 lines
410 B
Markdown
Raw Normal View History

2021-10-28 07:42:16 +08:00
# octahedron
Creates a octahedron.
**Since:** 3.2
## Parameters
- `radius` : Radius of the octahedron.
- `detail` : Default to 0. Setting this to a value greater than 0 adds vertices making it no longer a octahedron.
## Examples
2022-06-06 13:11:46 +08:00
use <polyhedra/octahedron.scad>
2021-10-28 07:42:16 +08:00
for(i = [0:5]) {
translate([i * 2, 0])
octahedron(radius = 1, detail = i);
}
2021-10-28 08:04:26 +08:00
![octahedron](images/lib3x-polyhedra_octahedron-1.JPG)
2021-10-28 07:42:16 +08:00