Reference · Surface maze rules and geometry
SOLID_FIRSTconstant
THE SOLIDS BY HOW THEY ARE MET. A solid is a die or a shape, and the picker of a page keeps them on two rows:
SOLID_DICE: the shapes dice are made in, by how many sides the die has (SOLID_DIE_SIDES): the triangular prism (a d3, the long die that rolls on its three sides), the tetrahedron (d4), the cube (d6), the octahedron (d8), the pentagonal trapezohedron (d10), the dodecahedron (d12) and the rhombic dodecahedron (the other d12), the octagonal bipyramid (d16), the icosahedron (d20), the deltoidal icositetrahedron (d24) and the rhombic triacontahedron (d30). A d2 is a coin and a d100 a d10, so neither is a solid of its own.SOLID_SHAPES: the globe, the box, the cross of cubes, the ring, the torus, the star and the heart.
The files the levels are kept in are cut another way, by when a solid came: the first five (SOLID_FIRST: the cube, the globe and the three solids of triangles) are 3d/levels, the seven further dice
3d/levels/dice and the six further shapes 3d/levels/shapes, so that a page loads only the file of the solid it shows.
Import it
import { SOLID_FIRST } from "@johnmorrisdotca/meikyuu/3d";
Also exported from: @johnmorrisdotca/meikyuu/3d/levels, @johnmorrisdotca/meikyuu/3d/levels/all
Definition
const SOLID_FIRST: readonly ["cube", "sphere", "tetrahedron", "octahedron", "icosahedron"] = ["cube", "sphere", "tetrahedron", "octahedron", "icosahedron"] as const
Examples
import { SOLID_FIRST } from "@johnmorrisdotca/meikyuu/3d";
console.log(SOLID_FIRST);[ 'cube', 'sphere', 'tetrahedron', 'octahedron', 'icosahedron' ]What it prints (run when this page was built)