Grid Geometry Spec
A neutral, serializable description of a grid's structural geometry — its dimensions, topology, and the obstacles/costs a GridGraph holds — keyed to the animated space it overlays by spaceName (P5a/G2).
This is the round-trip currency between the model and the layout: a GridGraph exports one via GridGraph.toSpec, the animation layer carries it in AnimationLayout.spaceGeometry, and (P5b) a modeler can rebuild a graph from one. It carries only structural fields — never display styling.
originX/originY/cellSize are the grid's physical placement in the space's world coordinates. They are distinct from a SpatialSpaceDescriptor.Grid's display cell size (chosen for drawing). When null, the renderer derives placement from the named space's bounds (cellSize = span/cols, origin = bounds min).
Constructors
Functions
Rebuilds a GridGraph from this structural spec — the consume side of the round-trip (P5b/G2). A modeler who wants the layout to be authoritative for geometry loads the layout, looks up the spec (AnimationLayout.gridGeometry(name)), and builds the graph from it. Reproduces dims, topology, obstacles, and costs exactly; the physical placement fields (originX/originY/cellSize) are layout/render concerns and are not part of the graph.