Reference · Surface maze rules and geometry
solidGridOffunction
The surface of a solid cut n ways (n at least 2, or 1 for a solid with sixty cells at that): its cells, which are beside which, and where each lies.
Import it
import { solidGridOf } from "@johnmorrisdotca/meikyuu/3d";
Definition
function solidGridOf(kind: SolidKind, n: number): SolidGrid
Parameters
| Name | Type | Description |
|---|---|---|
kind | SolidKind | The native puzzle family or surface shape specified by this signature. |
n | number | The level number, random bound or surface subdivision specified by the signature. |
Returns
SolidGrid
The surface of a solid cut n ways (n at least 2, or 1 for a solid with sixty cells at that): its cells, which are beside which, and where each lies.
Examples
import { solidGridOf } from "@johnmorrisdotca/meikyuu/3d";
console.log(solidGridOf("cube",2).cells);24What it prints (run when this page was built)