Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · struct

Native::

FScatterPosts

Experimental

A read-only view of one chunk's posts: FTerrainChunkPosts in plain C++.

Declaration

struct FScatterPosts
Header
#include "Native/TerrainScatter.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Tier 1: plain C++, no allocation, deterministic in canonical order (ascending candidate index), any thread. (the header’s rule)

Description

Nothing is owned or copied.

Row-major, index = Row * Posts + Col, X = column, Y = row. Heights in cm above OriginZ.

Properties

NameTypeDefaultMeaning
TileXint32_t0

Edit-layer tile of the chunk: part of every key.

TileYint32_t0—
Postsint32_t0

Posts per side; 0 = empty (nothing scatters).

OriginXdouble0.0

World position of post (0,0), cm.

OriginYdouble0.0—
OriginZdouble0.0

The datum of Heights, cm; added to every world Z.

CellCmdouble100.0

Post spacing, cm.

HeightsFPostHeights—

Posts² heights as stored (FTerrainChunkPosts::HeightStorage), read as cm above OriginZ (CmAt); empty = no heights.

CellClassconst uint8_t*nullptr

(Posts-1)² ground classes, 0xFF = hole; nullptr = every cell class 0.

PaintSlotsint32_t0

Pairs any post uses (FTerrainChunkPosts::PaintSlots); 0 = unpainted: every post layer 0 alone, Paint unread.

PaintFPaintPlanes—

The chunk's paint planes, Posts² values each, a null plane reading 0 (FTerrainChunkPosts::PaintPlanes()); a post's pairs are ReadPaintPost's.