Reference · Surface maze rules and geometry
isSolidCutfunction
Whether a solid can be cut n ways: a whole number of at least 2, or 1 where the solid has already sixty cells uncut (the dodecahedron's five to a face).
Import it
import { isSolidCut } from "@johnmorrisdotca/meikyuu/3d";
Definition
function isSolidCut(kind: SolidKind, n: number): boolean
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
boolean
Whether a solid can be cut n ways: a whole number of at least 2, or 1 where the solid has already sixty cells uncut (the dodecahedron's five to a face).
Examples
import { isSolidCut } from "@johnmorrisdotca/meikyuu/3d";
console.log(isSolidCut("cube",2));trueWhat it prints (run when this page was built)