Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · struct

FOrreryTerrainStampGhost

Editor only

The ghost of a height stamp before it is placed: EvaluateStampPreview's Side × Side grid of the stamp's result over the ground sampled at StampPreviewPoint, in world cm.

Declaration

struct FOrreryTerrainStampGhost
Header
#include "Tools/OrreryTerrainMaskPreview.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor"); in an editor module’s Build.cs: an editor module, not in packaged games.
Stability
Stable: changes within a major version only add.
Thread
Game thread, editor only.

Description

Build samples the ground (GetGroundHeight, the edited surface) at every grid point, runs the Tier 1 preview, which is the kernel's per-post Stamp code, and keeps the result: a point on an edit post previews that post exactly.

Note.

Game thread, editor only. Tier 3.

Functions

  • Build

    Evaluate the ghost of Stamp over Terrain.

  • IsInside

    Whether point (I, J) is inside.

  • CountInside

    Points inside: the stamp's footprint on the grid.

Properties

NameTypeDefaultMeaning
Sideint320

Points per side; 0 before a Build succeeded.

Points_cmTArray<FVector>—

Side × Side world points, row-major (J the row), Z the stamp's result.

InsideTArray<uint8>—

1 where the stamp writes and the terrain has ground, else 0.

bLoadedboolfalse

Every sample on the terrain answered Exact.

BuildMsdouble0.0

Wall time of the last Build: sampling and evaluation.