mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
add doc
This commit is contained in:
parent
bb2f10043f
commit
b76a2f9c32
@ -378,7 +378,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
|
||||
--|--
|
||||
[**polyhedra/tetrahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-tetrahedron.html) | Create a tetrahedron.
|
||||
[**polyhedra/hexahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-hexahedron.html) | create a hexahedron.
|
||||
polyhedra/octahedron | create a octahedron.
|
||||
[**polyhedra/octahedron**(radius[, detail])](https://openhome.cc/eGossip/OpenSCAD/lib3x-octahedron.html) | create a octahedron.
|
||||
polyhedra/dodecahedron | create a dodecahedron.
|
||||
polyhedra/icosahedron | create a icosahedron.
|
||||
polyhedra/superellipsoid | create a superellipsoid.
|
||||
|
BIN
docs/images/lib3x-octahedron-1.JPG
Normal file
BIN
docs/images/lib3x-octahedron-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
22
docs/lib3x-octahedron.md
Normal file
22
docs/lib3x-octahedron.md
Normal file
@ -0,0 +1,22 @@
|
||||
# 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
|
||||
|
||||
use <polyhedra/octahedron.scad>;
|
||||
|
||||
for(i = [0:5]) {
|
||||
translate([i * 2, 0])
|
||||
octahedron(radius = 1, detail = i);
|
||||
}
|
||||
|
||||
![octahedron](images/lib3x-octahedron-1.JPG)
|
||||
|
@ -1,3 +1,13 @@
|
||||
/**
|
||||
* octahedron.scad
|
||||
*
|
||||
* @copyright Justin Lin, 2021
|
||||
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||
*
|
||||
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-octahedron.html
|
||||
*
|
||||
**/
|
||||
|
||||
use <geom_octahedron.scad>;
|
||||
|
||||
module octahedron(radius, detail = 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user