add doc
This commit is contained in:
parent
10930e8b1c
commit
29da8be872
4 changed files with 33 additions and 1 deletions
|
|
@ -381,6 +381,6 @@ polyhedra/star | create a 3D star.
|
|||
[**polyhedra/tetrahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_tetrahedron.html) | create a tetrahedron.
|
||||
[**polyhedra/hexahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_hexahedron.html) | create a hexahedron.
|
||||
[**polyhedra/octahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_octahedron.html) | create a octahedron.
|
||||
polyhedra/dodecahedron | create a dodecahedron.
|
||||
[**polyhedra/dodecahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_dodecahedron.html) | create a dodecahedron.
|
||||
polyhedra/icosahedron | create a icosahedron.
|
||||
[**polyhedra/superellipsoid**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_superellipsoid.html) | create a superellipsoid.
|
||||
|
|
|
|||
BIN
docs/images/lib3x-polyhedra_dodecahedron-1.JPG
Normal file
BIN
docs/images/lib3x-polyhedra_dodecahedron-1.JPG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
22
docs/lib3x-polyhedra_dodecahedron.md
Normal file
22
docs/lib3x-polyhedra_dodecahedron.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# dodecahedron
|
||||
|
||||
Creates a dodecahedron.
|
||||
|
||||
**Since:** 3.2
|
||||
|
||||
## Parameters
|
||||
|
||||
- `radius` : Radius of the dodecahedron.
|
||||
- `detail` : Default to 0. Setting this to a value greater than 0 adds vertices making it no longer a dodecahedron.
|
||||
|
||||
## Examples
|
||||
|
||||
use <polyhedra/dodecahedron.scad>;
|
||||
|
||||
for(i = [0:5]) {
|
||||
translate([i * 2, 0])
|
||||
dodecahedron(radius = 1, detail = i);
|
||||
}
|
||||
|
||||

|
||||
|
||||
|
|
@ -1,3 +1,13 @@
|
|||
/**
|
||||
* dodecahedron.scad
|
||||
*
|
||||
* @copyright Justin Lin, 2021
|
||||
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||
*
|
||||
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedra_dodecahedron.html
|
||||
*
|
||||
**/
|
||||
|
||||
use <geom_dodecahedron.scad>;
|
||||
|
||||
module dodecahedron(radius, detail = 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue