Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

ScatterSubCellsInRect

Experimental

The sub-cells of a chunk that a world rectangle (cm, inclusive) touches: what a footprint or keep-clear change dirties.

Declaration

uint16_t ScatterSubCellsInRect(const FScatterPosts& Posts, double MinXCm, double MinYCm, double MaxXCm, double MaxYCm);
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

The caller grows the rectangle by the largest keep-clear margin.

Parameters

NameTypeDefaultMeaning
Postsconst FScatterPosts&——
MinXCmdouble——
MinYCmdouble——
MaxXCmdouble——
MaxYCmdouble——