mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-04 13:57:33 +02:00
add doc
This commit is contained in:
@@ -377,7 +377,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
|
|||||||
Signature | Description
|
Signature | Description
|
||||||
--|--
|
--|--
|
||||||
[**polyhedra/tetrahedron**(radius, detail = 0)](https://openhome.cc/eGossip/OpenSCAD/lib3x-tetrahedron.html) | Create a tetrahedron.
|
[**polyhedra/tetrahedron**(radius, detail = 0)](https://openhome.cc/eGossip/OpenSCAD/lib3x-tetrahedron.html) | Create a tetrahedron.
|
||||||
polyhedra/hexahedron | create a hexahedron.
|
[**polyhedra/hexahedron**(radius, detail = 0)](https://openhome.cc/eGossip/OpenSCAD/lib3x-hexahedron.html) | create a hexahedron.
|
||||||
polyhedra/octahedron | create a octahedron.
|
polyhedra/octahedron | create a octahedron.
|
||||||
polyhedra/dodecahedron | create a dodecahedron.
|
polyhedra/dodecahedron | create a dodecahedron.
|
||||||
polyhedra/icosahedron | create a icosahedron.
|
polyhedra/icosahedron | create a icosahedron.
|
||||||
|
BIN
docs/images/lib3x-hexahedron-1.JPG
Normal file
BIN
docs/images/lib3x-hexahedron-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
22
docs/lib3x-hexahedron.md
Normal file
22
docs/lib3x-hexahedron.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# hexahedron
|
||||||
|
|
||||||
|
Creates a hexahedron.
|
||||||
|
|
||||||
|
**Since:** 3.2
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
- `radius` : Radius of the hexahedron.
|
||||||
|
- `detail` : Default to 0. Setting this to a value greater than 0 adds vertices making it no longer a hexahedron.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
use <polyhedra/hexahedron.scad>;
|
||||||
|
|
||||||
|
for(i = [0:5]) {
|
||||||
|
translate([i * 2, 0])
|
||||||
|
hexahedron(radius = 1, detail = i);
|
||||||
|
}
|
||||||
|
|
||||||
|

|
||||||
|
|
@@ -1,3 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* hexahedron.scad
|
||||||
|
*
|
||||||
|
* @copyright Justin Lin, 2021
|
||||||
|
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||||
|
*
|
||||||
|
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-hexahedron.html
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
use <geom_hexahedron.scad>;
|
use <geom_hexahedron.scad>;
|
||||||
|
|
||||||
module hexahedron(radius, detail = 0) {
|
module hexahedron(radius, detail = 0) {
|
||||||
|
Reference in New Issue
Block a user