Reference · All surface collections
solidLevelOffunction
The one-based surface level, or null when this entry has no such kind, size or number.
Import it
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/all";
Definition
function solidLevelOf(kind: SolidKind, size: SolidSize, n: number): MeikyuuSolidLevel | null
Parameters
| Name | Type | Description |
|---|---|---|
kind | SolidKind | The native surface kind. |
size | "small" | "medium" | "large" | "huge" | "colossal" | The small, medium, large, huge or colossal collection. |
n | number | The one-based level number. |
Returns
MeikyuuSolidLevel | null
The one-based surface level, or null when this entry has no such kind, size or number.
Examples
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/all";
console.log(solidLevelOf("cube","small",1)?.code);cube:4:prim:3163583831What it prints (run when this page was built)