mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-04 13:57:33 +02:00
add doc
This commit is contained in:
BIN
docs/images/lib3x-tetrahedron-1.JPG
Normal file
BIN
docs/images/lib3x-tetrahedron-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
22
docs/lib3x-tetrahedron.md
Normal file
22
docs/lib3x-tetrahedron.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# tetrahedron
|
||||||
|
|
||||||
|
Create a tetrahedron.
|
||||||
|
|
||||||
|
**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
|
||||||
|
|
||||||
|
use <polyhedra/tetrahedron.scad>;
|
||||||
|
|
||||||
|
for(i = [0:5]) {
|
||||||
|
translate([i * 2, 0])
|
||||||
|
tetrahedron(radius = 1, detail = i);
|
||||||
|
}
|
||||||
|
|
||||||
|

|
||||||
|
|
Reference in New Issue
Block a user