Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainCore module · member function

Native::FBrushMask::

LevelFor

Experimental

The level a dab samples: the coarsest whose sample is no wider than one edit cell, 2 × HalfSide_mm × 2^k / Side <= Cell_mm, else level 0.

Declaration

uint32_t LevelFor(int64_t HalfSide_mm, int64_t Cell_mm) const;
Header
#include "Native/BrushMask.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++: any thread may read a mask. (the rule of FBrushMask)

Description

Pure integer arithmetic, so every machine picks the same.

Parameters

NameTypeDefaultMeaning
HalfSide_mmint64_t—

Half the mask's longer side on the ground (FBrush::Radius_mm).

Cell_mmint64_t—

The edit cell, mm.