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