Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainCore module · function

Native::

ScatterSubCellQuads

Experimental

The quads of sub-cell (SubX, SubY), half-open: [OutQ0X, OutQ1X) × [OutQ0Y, OutQ1Y).

Declaration

void ScatterSubCellQuads(int32_t Posts, int32_t SubX, int32_t SubY, int32_t& OutQ0X, int32_t& OutQ1X, int32_t& OutQ0Y, int32_t& OutQ1Y);
Header
#include "Native/TerrainScatter.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrainCore"); 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

A candidate belongs to the sub-cell whose half-open rectangle holds it, so the posts two tiles share never place twice. Sub-cells past the chunk's quads are empty (Q0 == Q1).

Parameters

NameTypeDefaultMeaning
Postsint32_t——
SubXint32_t——
SubYint32_t——
OutQ0Xint32_t&——
OutQ1Xint32_t&——
OutQ0Yint32_t&——
OutQ1Yint32_t&——