SpatialTerrainGeometry
The terrain mesh plus the height field it was built from, in model units. The mesh is a disk inscribed in the box: a regular grid with the vertices outside the circle moved onto it, and a round skirt below the edge so the model reads as a solid table. Buffers are flat: positions and normals hold xyz triples, textureCoordinates uv pairs.
Constructors
Properties
Row-major ground heights in model units (y).
Vertices on the top of the skirt, copies of the surface's edge; the same number again sit below them.
Functions
Ground height (model units) under a coordinate, clamped to the box.
The top surface alone, raised by lift, for an overlay drawn over the terrain with the same texture coordinates. The skirt's vertices and triangles come after the surface's, so the first columns * rows vertices and surfaceTriangleCount triangles are the surface.
Where to put something that sits on the ground at a coordinate.