Reference · Surface maze rules and geometry
SOLID_DIE_SIDESconstant
How many sides a die has (what its name on a die is: d6). Only a solid in SOLID_DICE has one.
Import it
import { SOLID_DIE_SIDES } from "@johnmorrisdotca/meikyuu/3d";
Also exported from: @johnmorrisdotca/meikyuu/3d/levels/all
Definition
const SOLID_DIE_SIDES: Readonly<Record<"cube" | "tetrahedron" | "octahedron" | "icosahedron" | "prism" | "trapezohedron" | "dodecahedron" | "rhombic-dodecahedron" | "bipyramid" | "icositetrahedron" | "triacontahedron", number>> = {
prism: 3,
tetrahedron: 4,
cube: 6,
octahedron: 8,
trapezohedron: 10,
dodecahedron: 12,
"rhombic-dodecahedron": 12,
bipyramid: 16,
icosahedron: 20,
icositetrahedron: 24,
triacontahedron: 30,
}
Members
| Name | Type | Description |
|---|---|---|
cube | number | |
tetrahedron | number | |
octahedron | number | |
icosahedron | number | |
prism | number | |
trapezohedron | number | |
dodecahedron | number | |
rhombic-dodecahedron | number | |
bipyramid | number | |
icositetrahedron | number | |
triacontahedron | number |
Examples
import { SOLID_DIE_SIDES } from "@johnmorrisdotca/meikyuu/3d";
console.log(SOLID_DIE_SIDES);{
prism: 3,
tetrahedron: 4,
cube: 6,
octahedron: 8,
trapezohedron: 10,
dodecahedron: 12,
'rhombic-dodecahedron': 12,
bipyramid: 16,
icosahedron: 20,
icositetrahedron: 24,
triacontahedron: 30
}What it prints (run when this page was built)